Backup Strategy Not Working

Karl Auer kauer at biplane.com.au
Sat Aug 1 09:08:04 UTC 2015


On Sat, 2015-08-01 at 08:35 +0100, Graham Watkins wrote:
> Just to clarify.  If I create the archive using the command shown from 
> the command line, I can access the file using archive manager. It is 
> when the the command is run as a scheduled task that the archive appears 
> to be broken.

Oh! Well that certainly makes everything a lot simpler! Can you access
the cron-created backup file from the command line?

Anyway: Write a script. Call it backup.sh and put it somewhere sensible.
The script should be:

   #!/bin/sh
   tar -cvpzf "/media/graham/Expansion
Drive/graham.tar.gz" /home/graham 
--exclude "/home/graham/VirtualBox VMs"

(everything after the first line is all on one line)

Remember to do "chmod u+x /path/to/backup.sh"

In your crontab, run /path/to/backup.sh

See how that works.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
Old fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882






More information about the ubuntu-users mailing list