rsync does not exclude directories in cron.daily July 13, 2013 01:38AM |
Admin Registered: 13 years ago Posts: 19,092 |
Re: rsync does not exclude directories in cron.daily July 13, 2013 10:29PM |
Registered: 14 years ago Posts: 264 |
Re: rsync does not exclude directories in cron.daily July 14, 2013 12:32PM |
Registered: 14 years ago Posts: 264 |
Re: rsync does not exclude directories in cron.daily July 14, 2013 03:28PM |
Registered: 11 years ago Posts: 149 |
Re: rsync does not exclude directories in cron.daily July 14, 2013 04:00PM |
Admin Registered: 13 years ago Posts: 19,092 |
Re: rsync does not exclude directories in cron.daily July 14, 2013 09:53PM |
Registered: 11 years ago Posts: 149 |
Re: rsync does not exclude directories in cron.daily July 16, 2013 12:37AM |
Admin Registered: 13 years ago Posts: 19,092 |
Re: rsync does not exclude directories in cron.daily July 16, 2013 02:14PM |
Registered: 14 years ago Posts: 264 |
Re: rsync does not exclude directories in cron.daily July 18, 2013 12:12AM |
Admin Registered: 13 years ago Posts: 19,092 |
#!/bin/sh echo `date` "Started rsync daily backup" >> /tmp/rsync.backup.daily.log Host=`hostname` if [ $Host = "tldDebian" ]; then echo `date` "Started rsync backup for tldDebian rootfs" >> /tmp/rsync.backup.daily.log /usr/bin/rsync -aAXv --dry-run --stats \ --exclude dev/* --exclude proc/* --exclude sys/* --exclude tmp/* \ --exclude run/* --exclude mnt/* --exclude media/* --exclude lost+found --exclude var/cache/apt/* --exclude swapfile1 \ --password-file=/root/rsync.backup.daily.pswd \ --log-file=/tmp/rsync.backup.daily.log \ /* rsync://mbpbackup@HomeMedia2.local/tldDebian echo `date` "Finished rsync daily backup for tldDebian rootfs" >> /tmp/rsync.backup.daily.log fi echo `date` "Finished rsync daily backup" >> /tmp/rsync.backup.daily.log exit 0
Re: rsync does not exclude directories in cron.daily July 18, 2013 08:26PM |
Registered: 14 years ago Posts: 264 |
Re: rsync does not exclude directories in cron.daily July 19, 2013 12:28AM |
Admin Registered: 13 years ago Posts: 19,092 |
ANCHORING INCLUDE/EXCLUDE PATTERNS As mentioned earlier, global include/exclude patterns are anchored at the "root of the transfer" (as opposed to per-directory patterns, which are anchored at the merge-file’s directory). If you think of the transfer as a subtree of names that are being sent from sender to receiver, the transfer-root is where the tree starts to be duplicated in the destination directory. This root governs where patterns that start with a / match.
Re: rsync does not exclude directories in cron.daily July 19, 2013 08:43PM |
Registered: 14 years ago Posts: 264 |
rsync a b c d
Re: rsync does not exclude directories in cron.daily July 20, 2013 01:05AM |
Admin Registered: 13 years ago Posts: 19,092 |
Re: rsync does not exclude directories in cron.daily July 20, 2013 04:28PM |
Admin Registered: 13 years ago Posts: 19,092 |