Public bug reported:
The problem is pretty straightforward:
I have this line in rsnapshot.conf:
backup /etc/ localhost/ +rsync_long_args=--filter='exclude
system/*/logs/'
Running rsnapshot -v daily I get:
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded \
--timeout 300 --filter='exclude system/*/logs/' /etc \
/media/500G_BACKUP/gptmp/daily.0/localhost/
Unknown filter rule: `'exclude system/*/logs/''
rsync error: syntax or usage error (code 1) at exclude.c(904) [client=3.1.0]
Unknown filter rule: `'exclude system/*/logs/''
rsync error: syntax or usage error (code 1) at exclude.c(904) [client=3.1.0]
----------------------------------------------------------------------------
So, it does not like the filter parameter. The strange thing is that if
I run manually the rsync line that rsnapshot is trying to run, it runs
ok:
# /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded
--timeout 300 --filter='exclude system/*/logs/' /etc
/media/500G_BACKUP/gptmp/daily.0/localhost/
#
I can only think that the shell breaks something with the quotes but I do not
know how to check it.
Note that this conf was working until I upgraded to 14.04 from 10.xx.
# lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04
# apt-cache policy rsnapshot
rsnapshot:
Installed: 1.3.1-4ubuntu0.1
Candidate: 1.3.1-4ubuntu0.1
Version table:
*** 1.3.1-4ubuntu0.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386
Packages
100 /var/lib/dpkg/status
1.3.1-4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
# apt-cache policy rsync
rsync:
Installed: 3.1.0-2ubuntu0.1
Candidate: 3.1.0-2ubuntu0.1
Version table:
*** 3.1.0-2ubuntu0.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main i386
Packages
100 /var/lib/dpkg/status
3.1.0-2 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
** Affects: rsnapshot (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1400283
Title:
rsnapshot + long args + filter does not work
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rsnapshot/+bug/1400283/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs