Re: Advanced rsync includes and excludes

2019-10-09 Thread Henri Shustak via rsync
Hello,

http://www.lbackup.org/developer/advanced_excludes_file_examples

The link above may outline a slightly different approach which may work on your 
system. However, you would need that approach assumes the backup path is set to 
root which may not be what you want to do.

For quick inline reference the excludes file example is included below. You 
should be able to modify this to make it work for you. However, as mentioned 
you will need to test it out on your system and see if it is doing what you 
expect.

> /private/etc/ssh_config/
> + private 
> + private/etc/***
> + private/var/***
> + home/***
> - *


Henri



> I'm a happy camper @ rsync (and rsnapshot) since years. Thanks for this major 
> piece of software.
> 
> In an attempt to reorganize my rsnapshot backups, I stumbled across an issue, 
> that I'm trying to seeking a more sophisticated solution here.
> 
> Given, I have a deeply branched tree, where I would like to include a 
> specific 
> directory deep under, while excluding anything else on that path, I find 
> myself doing:
> 
> + /some/
> + /some/very/
> + /some/very/deep/
> + /some/very/deep/path/
> + /some/very/deep/path/to/
> + /some/very/deep/path/to/save/
> - /some/very/deep/path/to/*
> - /some/very/deep/path/*
> - /some/very/deep/*
> - /some/very/*
> - /some/*
> 
> While it works, it feels rather awkward and gets very complicated, if you 
> have 
> more of such items to deal with. Sure, I could run this separately, but this 
> isn't the real McCoy either with a complicated tree structure.
> 
> What are your favorite ways of doing such tasks with rsync?
> 
> Thanks in advance,
> Pete
> 
> 
> 
> -- 
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options: 
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Advanced rsync includes and excludes

2019-08-07 Thread Hans-Peter Jansen via rsync
Am Mittwoch, 7. August 2019, 17:36:01 CEST schrieb Kevin Korb via rsync:
> I believe you can shorten that to:
> 
> + /some/very/
> + /some/very/deep/
> + /some/very/deep/path/
> + /some/very/deep/path/to/
> + /some/very/deep/path/to/save/***
> - /some/*

Unfortunately, this doesn't work, since it picks up everything in /some/very/, 
/some/very/deep/, and so on.

> You could also exclude /some and then use /some/very/deep/path/to/save
> as an additional source.  I don't know if rsnapshot can handle multiple
> sources in 1 rsync but rsync itself can.

No, it would need different backup jobs then...

Well, looks like my scheme from below is still the best way to handle such 
cases. 

Anyway, thanks for your feedback, Kevin.

Cheers,
Pete
 
> On 8/7/19 9:54 AM, Hans-Peter Jansen via rsync wrote:
> > Hi,
> > 
> > I'm a happy camper @ rsync (and rsnapshot) since years. Thanks for this
> > major piece of software.
> > 
> > In an attempt to reorganize my rsnapshot backups, I stumbled across an
> > issue, that I'm trying to seeking a more sophisticated solution here.
> > 
> > Given, I have a deeply branched tree, where I would like to include a
> > specific directory deep under, while excluding anything else on that
> > path, I find myself doing:
> > 
> > + /some/
> > + /some/very/
> > + /some/very/deep/
> > + /some/very/deep/path/
> > + /some/very/deep/path/to/
> > + /some/very/deep/path/to/save/
> > - /some/very/deep/path/to/*
> > - /some/very/deep/path/*
> > - /some/very/deep/*
> > - /some/very/*
> > - /some/*
> > 
> > While it works, it feels rather awkward and gets very complicated, if you
> > have more of such items to deal with. Sure, I could run this separately,
> > but this isn't the real McCoy either with a complicated tree structure.
> > 
> > What are your favorite ways of doing such tasks with rsync?
> > 
> > Thanks in advance,
> > Pete





-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Advanced rsync includes and excludes

2019-08-07 Thread Kevin Korb via rsync
I believe you can shorten that to:

+ /some/very/
+ /some/very/deep/
+ /some/very/deep/path/
+ /some/very/deep/path/to/
+ /some/very/deep/path/to/save/***
- /some/*

You could also exclude /some and then use /some/very/deep/path/to/save
as an additional source.  I don't know if rsnapshot can handle multiple
sources in 1 rsync but rsync itself can.

On 8/7/19 9:54 AM, Hans-Peter Jansen via rsync wrote:
> Hi,
> 
> I'm a happy camper @ rsync (and rsnapshot) since years. Thanks for this major 
> piece of software.
> 
> In an attempt to reorganize my rsnapshot backups, I stumbled across an issue, 
> that I'm trying to seeking a more sophisticated solution here.
> 
> Given, I have a deeply branched tree, where I would like to include a 
> specific 
> directory deep under, while excluding anything else on that path, I find 
> myself doing:
> 
> + /some/
> + /some/very/
> + /some/very/deep/
> + /some/very/deep/path/
> + /some/very/deep/path/to/
> + /some/very/deep/path/to/save/
> - /some/very/deep/path/to/*
> - /some/very/deep/path/*
> - /some/very/deep/*
> - /some/very/*
> - /some/*
> 
> While it works, it feels rather awkward and gets very complicated, if you 
> have 
> more of such items to deal with. Sure, I could run this separately, but this 
> isn't the real McCoy either with a complicated tree structure.
> 
> What are your favorite ways of doing such tasks with rsync?
> 
> Thanks in advance,
> Pete
> 
> 
> 

-- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   https://sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,



signature.asc
Description: OpenPGP digital signature
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Advanced rsync includes and excludes

2019-08-07 Thread Hans-Peter Jansen via rsync
Hi,

I'm a happy camper @ rsync (and rsnapshot) since years. Thanks for this major 
piece of software.

In an attempt to reorganize my rsnapshot backups, I stumbled across an issue, 
that I'm trying to seeking a more sophisticated solution here.

Given, I have a deeply branched tree, where I would like to include a specific 
directory deep under, while excluding anything else on that path, I find 
myself doing:

+ /some/
+ /some/very/
+ /some/very/deep/
+ /some/very/deep/path/
+ /some/very/deep/path/to/
+ /some/very/deep/path/to/save/
- /some/very/deep/path/to/*
- /some/very/deep/path/*
- /some/very/deep/*
- /some/very/*
- /some/*

While it works, it feels rather awkward and gets very complicated, if you have 
more of such items to deal with. Sure, I could run this separately, but this 
isn't the real McCoy either with a complicated tree structure.

What are your favorite ways of doing such tasks with rsync?

Thanks in advance,
Pete



-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html