Francis.Montagnac at inria.fr
2024-Jul-16 15:56 UTC
A question about rsync filters, not sure if I understand the man page
Hi. On Tue, 16 Jul 2024 16:00:47 +0100 Chris Green via rsync wrote:> I run a daily backup using 'rsync -a -F ....'> I want to exclude everything in ~/.local/share **except** the file:-> /home/chris/.local/share/evolution/calendar/system/calendar.ics> I have the following in my rsync-filter file to exclude ~/.local/share> - .local/share> Can I simply add the following before the exclude line:-> + /home/chris/.local/share/evolution/calendar/system/calendar.icsNo. Assuming you are doing this backup from your homedir, you should add to your .rsync-filter file: + /.local/ + /.local/share/ + /.local/share/evolution/ + /.local/share/evolution/calendar/ + /.local/share/evolution/calendar/system/ + /.local/share/evolution/calendar/system/calendar.ics - /.local/share/** The leading / does not means the / of the machine, but the root of the transfer (assuming this is your homedir). -- francis
crateman.universalistic356 at aceecat.org
2024-Jul-16 18:12 UTC
A question about rsync filters, not sure if I understand the man page
On Tue, Jul 16, 2024 at 05:56:28PM GMT, Francis.Montagnac--- via rsync wrote:> > I want to exclude everything in ~/.local/share **except** the file:-> > /home/chris/.local/share/evolution/calendar/system/calendar.ics> > I have the following in my rsync-filter file to exclude ~/.local/share> > - .local/share> > Can I simply add the following before the exclude line:-> > + /home/chris/.local/share/evolution/calendar/system/calendar.ics> No. Assuming you are doing this backup from your homedir, you should > add to your .rsync-filter file:> + /.local/ > + /.local/share/ > + /.local/share/evolution/ > + /.local/share/evolution/calendar/ > + /.local/share/evolution/calendar/system/ > + /.local/share/evolution/calendar/system/calendar.ics > - /.local/share/**But but but, will this not also include everything else in .local/share/evolution/calendar/system/ ? As far as I understand that is not what the OP wants. -- Ian
Chris Green
2024-Jul-17 07:17 UTC
A question about rsync filters, not sure if I understand the man page
On Tue, Jul 16, 2024 at 05:56:28PM +0200, Francis.Montagnac at inria.fr wrote:> Hi. > > On Tue, 16 Jul 2024 16:00:47 +0100 Chris Green via rsync wrote: > > > I run a daily backup using 'rsync -a -F ....' > > > I want to exclude everything in ~/.local/share **except** the file:- > > > /home/chris/.local/share/evolution/calendar/system/calendar.ics > > > I have the following in my rsync-filter file to exclude ~/.local/share > > > - .local/share > > > Can I simply add the following before the exclude line:- > > > + /home/chris/.local/share/evolution/calendar/system/calendar.ics > > No. Assuming you are doing this backup from your homedir, you should > add to your .rsync-filter file: > > + /.local/ > + /.local/share/ > + /.local/share/evolution/ > + /.local/share/evolution/calendar/ > + /.local/share/evolution/calendar/system/ > + /.local/share/evolution/calendar/system/calendar.ics > - /.local/share/** > > The leading / does not means the / of the machine, but the root of the > transfer (assuming this is your homedir). >Brilliant, thank you, that clarifies the explanation in the man page which did *seem* to be saying what you have laid out above but I wasn't quite sure. You have made it very clear! :-) -- Chris Green
Apparently Analagous Threads
- A question about rsync filters, not sure if I understand the man page
- A question about rsync filters, not sure if I understand the man page
- which rsync command?
- Trying to diagnose incomplete file transfer
- copy /backup/current/home/???user>/Maildir -> /home/???user>/Maildir ?