خرید بک لینک

Hi all,

I would appreciate it if someone could tell me what I am doing wrong with my Rsync exclusion list?

Recently I discovered through another of my threads Rsync may not have been excluding anything in my exclusion list. Yesterday I cleaned up an old HDD to back up my machine and confirm whether or not Rsync is using the exclusions list. As suspected Rsync didn't exclude anything.

I did plenty of reading of other threads about creating and using exclusion lists with Rsync, then edited my back up script and exclusion list repeatedly to no avail and at this very moment in time Rsync is now saying there's no such file or directory. Below is a copy of my backup script, my exclusions list and the various alteatives I tried in order to make it work. Please point out and correct my error(s) because clearly I can't work it out for myself and I'm just about at my wits end.

Original back up script = no error messages

Code:

rsync -avrPS --exclude-from=backup_excludes.lst ~/ /media/mno/ADATA/Backup.HP

1st edit = as above

Code:

rsync -avrPS --exclude-from='backup_excludes.lst' ~/ /media/mno/ADATA/Backup.HP

2nd edit = as above

Code:

rsync -avrPS –exclude-from 'backup_excludes.lst' ~/ /media/mno/ADATA/Backup.HP

3rd edit = no such file or directory

Code:

rsync -avrPS –exclude-from=/home/bin/backup_excludes.lst ~/ /media/mno/ADATA/Backup.HP

4th edit = no such file or directory

Code:

rsync -avrPS –exclude-from='/home/bin/backup_excludes.lst' ~/ /media/mno/ADATA/Backup.HP

Original exclude list.

Code:

 ~/home/*/.cache** 
 ~/home/*/.dbus 
 ~/home/*/.dropbox 
 ~/home/*/.mozilla/firefox/f0siflo0.default/Cache/** 
 ~/home/*/.mozilla/firefox/f0siflo0.default/Cache.Trash 
 ~/home/*/.mozilla/firefox/1ccnqwzj.default/Cache/** 
 ~/home/*/.mozilla/firefox/1ccnqwzj.default/Cache.Trash 
 ~/home/*/.local/share/Trash/** 
 ~/home/*/.cache/thumbnails 
 ~/home/*/.cache/mozilla 
 ~/home/*/.cache/thunderbird

In my second edit I removed the double **. Third edit added them back and removed /home so it was just ~/*/.cache**. Despite all this, all the above directories still get copied complete with their contents. Most of the path names I copied exactly from Rsync when it had run.

برچسب: نویسنده: استخدام کار تاريخ: جمعه 28 اسفند 1394 ساعت: 14:12

صفحه بندی