Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
alias ursync='sudo rsync -aAXvP --ignore-existing --exclude={"/home/robby/.cache/*","/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /run/media/robby/070ddd9e-7d25-4778-832b-5a458804ebb8/\[Desktop\]rsync/ --delete-before'
1. rsync is excluding everything fine except the first exclude, the .cache folder. Why is it still synching this every time?
Code:
robby ~ $ ursync
sending incremental file list
home/robby/.cache/mozilla/firefox/k8mlqs23.default/cache2/entries/
home/robby/.cache/mozilla/firefox/k8mlqs23.default/cache2/entries/0310024F0B0D1B16092CD3149EBCE9737FDC3BC3
162,786 100% 41.33MB/s 0:00:00 (xfr#1, ir-chk=38744/45389)
home/robby/.cache/mozilla/firefox/k8mlqs23.default/cache2/entries/81D40C09C19D0AAD7A4F737AA0D3C0C06254782D
2,249 100% 732.10kB/s 0:00:00 (xfr#2, ir-chk=21679/45389)
home/robby/.cache/mozilla/firefox/k8mlqs23.default/cache2/entries/970A3B860E91368675D6C5CB7E572CD3708487AE
162,787 100% 38.81MB/s 0:00:00 (xfr#3, ir-chk=18804/45389)
home/robby/.cache/mozilla/firefox/k8mlqs23.default/cache2/entries/DFA8014EECC50B189C3513E90C30918284A22DD0
162,775 100% 31.05MB/s 0:00:00 (xfr#4, ir-chk=9186/45389)
sys/
sent 13,283,815 bytes received 33,226 bytes 2,421,280.18 bytes/sec
total size is 75,307,451,256 speedup is 5,654.97
robby ~ $
2. If you look at the end of my command, you notice I use --delete-before to remove any files in TARGET that do not exist in SOURCE anymore. Yet the files remain on backup which I want rsync to remove.
Last edited by PACMANchasingme; 02-24-2016 at 06:45 AM.
2. probably they are excluded because you specified to exclude them. You gave no related information, so we can only guess.
1. use -v -vv -i or similar to check what's happening
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.