Hello guys, sorry for cross-posting, but imho it could be an error in my rsnapshot setup as well as in my rsync setup. If there is a solution on one of these mailing-lists i will post it to the other one as well. ok? here is my question: when running rsnapshot, my exclude filter is being ignored, but i don't see why. grep -v "#" /etc/rsnapshot-debx40.conf | grep . gives config_version 1.2 snapshot_root /media/extfp/Backup/rsnapshot-debx40/ no_create_root 1 cmd_cp /bin/cp cmd_rm /bin/rm cmd_rsync /usr/bin/rsync cmd_ssh /usr/bin/ssh cmd_logger /usr/bin/logger retain daily 7 retain weekly 4 retain monthly 3 verbose 5 loglevel 5 logfile /var/log/rsnapshot.log lockfile /var/run/rsnapshot.pid rsync_long_args -ev --rsync-path=/home/backupuser/rsync-wrapper.sh exclude "**no-backup**" link_dest 0 rsync_numtries 1 backup backupuser at debx40:/home/lorenz/ home/lorenz/ backup backupuser at debx40:/etc/ etc/ backup backupuser at debx40:/root/ root/ rsnapshot -D -c /etc/rsnapshot-debx40.conf daily works but e.g. /home/lorenz/testsource/no-backup/some-file is also rsynced, despite it would match the exclude pattern in my /etc/rsnapshot-debx40.conf running the except same rsync command as printed out by rsnapshot -tD -c /etc/rsnapshot-debx40.conf daily, namely /usr/bin/rsync -av -ev --rsync-path=/home/backupuser/rsync-wrapper.sh --exclude="**nobackup**" --rsh=/usr/bin/ssh backupuser at debx40:/home/lorenz/ /media/extfp/Backup/rsnapshot-debx40/daily.0/home/lorenz/ works and e.g. /home/lorenz/testsource/no-backup/some-file is really excluded. after hours of fiddling around with filter rules i finally tried using an exclude-from file and it worked perfectly. Could the failing of the attempt with exclude filters in /etc/rsnapshot-debx40.conf be a bug? could this misbehavior be related to the problem i posted some days ago (see "[rsnapshot-discuss] wondering why backup wont start" or "/usr/bin/ssh not found when rsync is executed within rsnapshot" on the rsync mailing-list)? -- keep rockin Lorenz
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am guessing that the problem is probably related to command line quoting vs config file settings. I mainly replied to tell you that if you run with link_dest disabled you are stuck with the level of performance from 10 years ago. On 02/15/2014 05:08 AM, Lorenz wrote:> Hello guys, > > sorry for cross-posting, but imho it could be an error in my > rsnapshot setup as well as in my rsync setup. If there is a > solution on one of these mailing-lists i will post it to the other > one as well. ok? > > here is my question: when running rsnapshot, my exclude filter is > being ignored, but i don't see why. > > grep -v "#" /etc/rsnapshot-debx40.conf | grep . > > gives > > config_version 1.2 snapshot_root > /media/extfp/Backup/rsnapshot-debx40/ no_create_root 1 cmd_cp > /bin/cp cmd_rm /bin/rm cmd_rsync /usr/bin/rsync cmd_ssh > /usr/bin/ssh cmd_logger /usr/bin/logger retain daily 7 retain > weekly 4 retain monthly 3 verbose 5 loglevel 5 logfile > /var/log/rsnapshot.log lockfile /var/run/rsnapshot.pid > rsync_long_args -ev --rsync-path=/home/backupuser/rsync-wrapper.sh > exclude "**no-backup**" link_dest 0 rsync_numtries 1 backup > backupuser at debx40:/home/lorenz/ home/lorenz/ backup > backupuser at debx40:/etc/ etc/ backup backupuser at debx40:/root/ > root/ > > > rsnapshot -D -c /etc/rsnapshot-debx40.conf daily > > works but e.g. /home/lorenz/testsource/no-backup/some-file > > is also rsynced, despite it would match the exclude pattern in my > /etc/rsnapshot-debx40.conf > > running the except same rsync command as printed out by rsnapshot > -tD -c /etc/rsnapshot-debx40.conf daily, namely > > /usr/bin/rsync -av -ev > --rsync-path=/home/backupuser/rsync-wrapper.sh > --exclude="**nobackup**" --rsh=/usr/bin/ssh > backupuser at debx40:/home/lorenz/ > /media/extfp/Backup/rsnapshot-debx40/daily.0/home/lorenz/ > > works and e.g. /home/lorenz/testsource/no-backup/some-file is > really excluded. > > after hours of fiddling around with filter rules i finally tried > using an exclude-from file and it worked perfectly. Could the > failing of the attempt with exclude filters in > /etc/rsnapshot-debx40.conf be a bug? could this misbehavior be > related to the problem i posted some days ago (see > "[rsnapshot-discuss] wondering why backup wont start" or > "/usr/bin/ssh not found when rsync is executed within rsnapshot" on > the rsync mailing-list)? > > -- > > keep rockin Lorenz >- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlL/iVYACgkQVKC1jlbQAQcljACg69TbhtJeGOOY7U+5ahfrAHK4 RJoAoICSck1c/aOOC27XyEMkM4cbwh9F =zofi -----END PGP SIGNATURE-----
Lorenze, I see this in your message:> > /usr/bin/rsync -av -ev --rsync-path=/home/backupuser/rsync-wrapper.sh --exclude="**nobackup**" --rsh=/usr/bin/ssh backupuser@debx40:/home/lorenz/ /media/extfp/Backup/rsnapshot-debx40/daily.0/home/lorenz/ >Double '*'? That... seems rather pointless. It is true that an rsync file avoids the difficulty of having to parse regular expressions, or syntactically significant characters like '?' or '$', in the rsnapshot.conf file, in the Perl based rsnapshot internal parsing, and then in the rsync command. And using a flat rsync-excludes.conf file is, in fact, a very graceful way to avoid the confusion and make your setup more portable. Juggling the "\" characters to get things parsed correctly and consistently can be a nightmare. Your new use of an rsync-excludes.conf is probably the safest and most portable practice. I went through this recently with a perl program handling unencrypted passwords with a mixture of single and double quotes in them. On Sat, Feb 15, 2014 at 5:08 AM, Lorenz <lorenz.wenner@posteo.de> wrote:> Hello guys, > > sorry for cross-posting, but imho it could be an error in my rsnapshot setup > as well as in my rsync setup. If there is a solution on one of these mailing-lists i will > post it to the other one as well. ok? > > here is my question: when running rsnapshot, my exclude filter is being ignored, but i don't see why. > > grep -v "#" /etc/rsnapshot-debx40.conf | grep . > > gives > > config_version 1.2 > snapshot_root /media/extfp/Backup/rsnapshot-debx40/ > no_create_root 1 > cmd_cp /bin/cp > cmd_rm /bin/rm > cmd_rsync /usr/bin/rsync > cmd_ssh /usr/bin/ssh > cmd_logger /usr/bin/logger > retain daily 7 > retain weekly 4 > retain monthly 3 > verbose 5 > loglevel 5 > logfile /var/log/rsnapshot.log > lockfile /var/run/rsnapshot.pid > rsync_long_args -ev --rsync-path=/home/backupuser/rsync-wrapper.sh > exclude "**no-backup**" > link_dest 0 > rsync_numtries 1 > backup backupuser@debx40:/home/lorenz/ home/lorenz/ > backup backupuser@debx40:/etc/ etc/ > backup backupuser@debx40:/root/ root/ > > > rsnapshot -D -c /etc/rsnapshot-debx40.conf daily > > works but e.g. /home/lorenz/testsource/no-backup/some-file > > is also rsynced, despite it would match the exclude pattern in my /etc/rsnapshot-debx40.conf > > running the except same rsync command as printed out by rsnapshot -tD -c /etc/rsnapshot-debx40.conf daily, namely > > /usr/bin/rsync -av -ev --rsync-path=/home/backupuser/rsync-wrapper.sh --exclude="**nobackup**" --rsh=/usr/bin/ssh backupuser@debx40:/home/lorenz/ /media/extfp/Backup/rsnapshot-debx40/daily.0/home/lorenz/ > > works and e.g. /home/lorenz/testsource/no-backup/some-file is really excluded. > > after hours of fiddling around with filter rules i finally tried using an exclude-from file and it worked perfectly. Could the failing of the attempt with exclude filters in /etc/rsnapshot-debx40.conf be a bug? could this misbehavior be related to the problem i posted some days ago (see "[rsnapshot-discuss] wondering why backup wont start" or "/usr/bin/ssh not found when rsync is executed within rsnapshot" on the rsync mailing-list)? > > -- > > keep rockin > Lorenz > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > rsnapshot-discuss mailing list > rsnapshot-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk