nikrox
Posts: 9
Joined: Wed Feb 04, 2015 8:31 am

Rsync exclude previously transfered files

Thu Mar 09, 2017 11:44 am

I have a seedbox and a Raspberry Pi. The Raspberry Pi Rsync's to the server and grabs every file that it doesn't already. This would be fine, except some of the files are .rar files that I want to extract, then delete the archive. Rsync, however, will retransfer the file. Is there any way to avoid this?

User avatar
RaTTuS
Posts: 10565
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Rsync exclude previously transfered files

Thu Mar 09, 2017 11:57 am

not easily
you can stop transferring some files with --ignore *.rar for example
however I take it you want those files anyway..
so I'd not bother deleting those when you extract

or don't bother raring the files just rsync everything anyway

or extract to somewhere else


[I'd also not bother using rar [for reasons]] YMMV
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
topguy
Posts: 6629
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Rsync exclude previously transfered files

Thu Mar 09, 2017 12:01 pm

rsync doesnt remember, its job is to make two directories equal.

I believe you can create a list of files to be excluded from the sync, and you could probably add files to that list from the log of already transferred files.
This list of files would probably be quite long after a while.

Return to “Networking and servers”