Quote:
Originally Posted by SSS PS On a side note, dwmtractor, for your bash backup script it may be better if you have the rsync lines include the --delete parameter. At the moment it'll backup the zimbra folder into a backup folder then compress that folder into a tarball. The next time the script runs it'll just keep adding and updating new files to the backup folder without deleting old files/folders, which could cause junk to build up over time?
Including the --delete option in the command gets rid of files in the destination folder that don't exist at the source. |
Excellent suggestion, SSS, I'm going to make that mod to the script right now.
It looks from
this man page like the syntax should be -e --delete. Therefore the whole line will be revised to:
Code:
rsync -avHK -e --delete /opt/zimbra/ /backup/zimbra
Thank you!
Dan