View Single Post
  #30  
Old 25th April 2010, 21:20
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 40 Times in 34 Posts
Default

Quote:
Originally Posted by SimonH View Post
that line in your script should probably just be

Code:
TAR=`which tar`
Great script by the way go0ogl3, works perfectly for me, I just need to tag an scp command on the end now to send the backup to a remote box.

Nice job
Thanks Simon. Works great now thanks.

For the benefit of others who are at my level of learning, using this line:

Code:
40 3 * * * /etc/back-res 1>/dev/null 2>/dev/null
in the crontab will send all output into the 'bit bin'. That means where there were problems such as trying to backup a non existent directory it'll carry on with no offputting error messages to the user. It'll just run during the night with a nice surprise for the morning.

In debian lenny you can find the crontab: /etc/crontab then use your favourite editor to add that line.
Reply With Quote