LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-24-2016, 06:36 AM   #1
PACMANchasingme
Member
 
Registered: Mar 2015
Distribution: Arch
Posts: 62

Rep: Reputation: Disabled
Two issues with rsync arguements.


Code:
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.
 
Old 02-24-2016, 07:08 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
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
 
Old 02-24-2016, 07:13 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I use exclude lists and they work, but I do not use *, just plain /dir.
 
Old 02-24-2016, 11:55 AM   #4
PACMANchasingme
Member
 
Registered: Mar 2015
Distribution: Arch
Posts: 62

Original Poster
Rep: Reputation: Disabled
I changed .cache/* to just .cache/ and it worked fine for some reason.

Quote:
Originally Posted by Emerson View Post
I use exclude lists and they work, but I do not use *, just plain /dir.
Wouldn't that create problems if restoring a backup, you wont have a dev,proc,tmp folders for stuff to find and write to again.
 
Old 02-24-2016, 12:17 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I use ~/.exclude file, it looks like this:

Code:
dir1
dir2
..
file1
file2
..
Not even using full path nor using trailing '/'.
 
Old 02-24-2016, 12:56 PM   #6
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by PACMANchasingme View Post
Wouldn't that create problems if restoring a backup, you wont have a dev,proc,tmp folders for stuff to find and write to again.
Interesting question, and I wondered the same thing myself. I just assumed that the needed directories would be created when needed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RSYNC Issues jim.thornton Linux - Newbie 5 09-26-2012 09:27 PM
[SOLVED] Help with expect command and multiple arguements genderbender Programming 3 10-04-2010 07:26 AM
Hide program arguements from ps? jon_k Programming 3 10-29-2006 12:52 AM
alias command line arguements Henster Linux - Newbie 2 07-01-2005 03:40 AM
alternative printf ... multible arguements jnusa Programming 4 12-14-2004 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration