Discussion:
[BackupPC-devel] RFE: Combing include and exclude in rsyncd backups
Kenneth Porter
2017-03-13 18:08:56 UTC
Permalink
It would be nice if I could combine exclude and include in an rsyncd
backup. That way I could back up a subdirectory within a module but still
exclude directories within that directory. Ie. apply the exclude list after
the include list. Is this a protocol limitation or a BackupPC limitation?

Example:

Host provides "C" module exposing C:\ for backup. I have backups like this:

C\devel\Boost (just the Boost C++ libraries)
C\devel (all development except Boost)
C (the rest of the drive)

Currently I have to list all the directories under C\devel for the include
list. I'd rather have it recognize an exclude list of just C\devel\Boost so
that when a user adds a new directory under C\devel I don't have to modify
the backup configuration.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-devel mailing list
BackupPC-***@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Craig Barratt
2017-03-13 23:38:18 UTC
Permalink
In 4.x you can specify both includes and excludes with rsync and rsyncd.

Craig
Post by Kenneth Porter
It would be nice if I could combine exclude and include in an rsyncd
backup. That way I could back up a subdirectory within a module but still
exclude directories within that directory. Ie. apply the exclude list after
the include list. Is this a protocol limitation or a BackupPC limitation?
C\devel\Boost (just the Boost C++ libraries)
C\devel (all development except Boost)
C (the rest of the drive)
Currently I have to list all the directories under C\devel for the include
list. I'd rather have it recognize an exclude list of just C\devel\Boost so
that when a user adds a new directory under C\devel I don't have to modify
the backup configuration.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-devel mailing list
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Holger Parplies
2017-03-14 15:43:19 UTC
Permalink
Hi,
Post by Craig Barratt
Post by Kenneth Porter
It would be nice if I could combine exclude and include in an rsyncd
backup. That way I could back up a subdirectory within a module but still
exclude directories within that directory. Ie. apply the exclude list after
the include list. Is this a protocol limitation or a BackupPC limitation?
In 4.x you can specify both includes and excludes with rsync and rsyncd.
you can also do that in 3.x. It's actually not really "includes" -
BackupFilesOnly is emulated by creating includes and excludes that lead to
the desired behaviour. After that, BackupFilesExclude is appended to the
list, so you should be able to achieve exactly what you want. For Windoze,
I believe the syntax is confusing, because you can sometimes specify / as
path separator, sometimes \ and sometimes \\ (quoted backslash). Windoze
should accept both slash and backslash for file names, but in-/exclude
matching may be just string based on either client or server. I never seem
to be able to remember how many levels of quoting you need, because I don't
use Windoze, but I'm guessing your problem lies there. What exact settings
are you using?

Hope that helps.

Regards,
Holger

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-devel mailing list
BackupPC-***@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Kenneth Porter
2017-03-15 06:16:32 UTC
Permalink
--On Tuesday, March 14, 2017 5:43 PM +0100 Holger Parplies
I never seem to be able to remember how many levels of quoting you need,
because I don't use Windoze, but I'm guessing your problem lies there.
What exact settings are you using?
I used the web config and trusted that it would quote properly. So my
BackupFilesOnly has key "C" and value "/devel" (without quotes). That seems
to work fine.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-devel mailing list
BackupPC-***@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Kenneth Porter
2017-03-15 06:13:25 UTC
Permalink
--On Monday, March 13, 2017 5:38 PM -0700 Craig Barratt
Post by Craig Barratt
In 4.x you can specify both includes and excludes with rsync and rsyncd.
It turns out I misread the v3 documentation. The two are only mutually
exclusive with smb backups. So I should be able to tweak some of my
configs.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-devel mailing list
BackupPC-***@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Loading...