Discussion:
[rsnapshot-discuss] after upgrading to Debian Jessie excludes no longer work
John Covici
2016-10-02 14:32:41 UTC
Permalink
Hi. I am having a problem -- I use rsnapshot to backup my server to a
local external hd and before upgrading to Debian jessie everything
worked fine, now although the correct exclude statements are being
passed to rsync, they are not being obeyed, and so the rsync tried to
backup /proc, which of course will not work.

Anyone know what is happening here and could suggest a possible
solution?

Thanks in advance for any ideas.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
***@ccs.covici.com
Christopher Barry
2016-10-02 16:06:34 UTC
Permalink
On Sun, 02 Oct 2016 10:32:41 -0400
Post by John Covici
Hi. I am having a problem -- I use rsnapshot to backup my server to a
local external hd and before upgrading to Debian jessie everything
worked fine, now although the correct exclude statements are being
passed to rsync, they are not being obeyed, and so the rsync tried to
backup /proc, which of course will not work.
Anyone know what is happening here and could suggest a possible
solution?
Thanks in advance for any ideas.
I can tell you that I've been on Jessie for a year, and it's not that.
I run Debian sid, and actually I'm already on Stretch.

Maybe run:
apt-get --purge remove rsync rsnapshot && \
apt-get install rsnapshot rsync

then reconfigure and retry.
--
Regards,
Christopher
John Covici
2016-10-02 16:39:43 UTC
Permalink
Just tried that, no joy -- I do see in the log that rsync is getting
the correct options, like this
[02/Oct/2016:12:35:18] /usr/bin/rsync -avh --delete --numeric-ids
--relative --delete-excluded --no-whole-file --exclude='/proc/*'
--exclude='/sys/*' --exclude='/mnt/backup/*' --exclude='/mnt/misc/*'
--exclude='/mnt/misc2/*' --exclude='/var/lib/php5/*'
--exclude='/usr/tmp/*' --exclude='/tmp/*'
--exclude='/var/account/pacct' --exclude='/media/*'
--exclude='/var/spool/mqueue/*' --exclude='/mnt/cdrom/*'
--exclude='/run' --exclude='/var/lib/fail2ban/*'
--exclude='/dev/shm/*' --exclude='/var/spool/asterisk/msg-app/tts/*'
--exclude=mnt/backup/snapshot_root
/. /mnt/backup/snapshot_root/.sync/rsnapshot_backups/
but its trying to backup inside /proc.


On Sun, 02 Oct 2016 12:06:34 -0400,
Post by Christopher Barry
On Sun, 02 Oct 2016 10:32:41 -0400
Post by John Covici
Hi. I am having a problem -- I use rsnapshot to backup my server to a
local external hd and before upgrading to Debian jessie everything
worked fine, now although the correct exclude statements are being
passed to rsync, they are not being obeyed, and so the rsync tried to
backup /proc, which of course will not work.
Anyone know what is happening here and could suggest a possible
solution?
Thanks in advance for any ideas.
I can tell you that I've been on Jessie for a year, and it's not that.
I run Debian sid, and actually I'm already on Stretch.
apt-get --purge remove rsync rsnapshot && \
apt-get install rsnapshot rsync
then reconfigure and retry.
--
Regards,
Christopher
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
***@ccs.covici.com
David Keegel
2016-10-02 22:10:55 UTC
Permalink
John,

It looks like there are extraneous single quotes before and after
the directories you want to exclude, for example
'/proc/*'
instead of
/proc/*
or
/proc/

I suggest you drop the "*" unless you specifically want to avoid
excluding files whose names start with ".", although I don't think
that is the cause of your problem here.

Perhaps you were previously using an old version of rsnapshot which
used a shell to execute rsync, rather than executing it directly.
Post by John Covici
Just tried that, no joy -- I do see in the log that rsync is getting
the correct options, like this
[02/Oct/2016:12:35:18] /usr/bin/rsync -avh --delete --numeric-ids
--relative --delete-excluded --no-whole-file --exclude='/proc/*'
--exclude='/sys/*' --exclude='/mnt/backup/*' --exclude='/mnt/misc/*'
--exclude='/mnt/misc2/*' --exclude='/var/lib/php5/*'
--exclude='/usr/tmp/*' --exclude='/tmp/*'
--exclude='/var/account/pacct' --exclude='/media/*'
--exclude='/var/spool/mqueue/*' --exclude='/mnt/cdrom/*'
--exclude='/run' --exclude='/var/lib/fail2ban/*'
--exclude='/dev/shm/*' --exclude='/var/spool/asterisk/msg-app/tts/*'
--exclude=mnt/backup/snapshot_root
/. /mnt/backup/snapshot_root/.sync/rsnapshot_backups/
but its trying to backup inside /proc.
On Sun, 02 Oct 2016 12:06:34 -0400,
Post by Christopher Barry
On Sun, 02 Oct 2016 10:32:41 -0400
Post by John Covici
Hi. I am having a problem -- I use rsnapshot to backup my server to a
local external hd and before upgrading to Debian jessie everything
worked fine, now although the correct exclude statements are being
passed to rsync, they are not being obeyed, and so the rsync tried to
backup /proc, which of course will not work.
Anyone know what is happening here and could suggest a possible
solution?
Thanks in advance for any ideas.
I can tell you that I've been on Jessie for a year, and it's not that.
I run Debian sid, and actually I'm already on Stretch.
apt-get --purge remove rsync rsnapshot && \
apt-get install rsnapshot rsync
then reconfigure and retry.
--
Regards,
Christopher
--
How do
you spend it?
John Covici
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
rsnapshot-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
--
___________________________________________________________________________
David Keegel <***@cyber.com.au> Cyber IT Solutions Pty. Ltd.
http://www.cyber.com.au/~djk/ Linux & Unix Systems Administration
Loading...