Can anyone help me please by looking at my snapshot backup script. It should be taking a daily snapshot of my core libraries and backing them up withan RSYNC --link-dest. It should keep 5 days worth of backups.

What I find is that if I call the job from CRON it runs OK and I get my backup libraries correctly created but at some point if I leave the process to run it starts deleting the backup libraries and then just runs through without doing anything i.e. 0 minutes to complete.

Excuse the primitive code but if anyone can tell me what is wrong with it I would be very grateful. Any tips on tidying up the code and adding in "traps"or console messages for better debugging would also be gratefully received !

# RSYNC using the link-dest option:# # This option behaves like --copy-dest, but unchanged files are# hard linked from DIR to the destination directory. The files# must be identical in all preserved attributes (e.g. permissions,# possibly ownership) in order for the files to be linked# together. An example:## rsync -av --link-dest=$PWD/prior_dir host:src_dir/ new_dir/#

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum