Franco Cazzaro
2016-11-16 07:53:31 UTC
Hi,
first, sorry for my elementary English.
I'm triing to use rsnapshot to backup a folder on my server containing
some websites, for obvious motives I'd like to exclude some files like
access and error logs, so, this is my .conf extract:
rsync_short_args -aAXvrsync_long_args --delete --numeric-ids
--delete-excluded# The include and exclude parameters, if enabled,
simply get passed directly# to rsync. If you have multiple
include/exclude patterns, put each one on a# separate line. Please look
up the --include and --exclude options in the# rsync man page for more
details on how to specify file name patterns. # exclude
'.*/log/access.log'exclude '.*/log/20*-access.log.gz'exclude
'.*/log/error.log'exclude 'tmp/PHPSESSID*'
the rsync command explode is:
/usr/bin/rsync -aAXv --delete --numeric-ids --delete-excluded \
--exclude='.*/log/access.log' --exclude='.*/log/20*-access.log.gz' \
--exclude='.*/log/error.log' --exclude='tmp/PHPSESSID*' \
--link-dest=/raid/HTTP_snapshot/hourly.1/HTTP_hourly/ /HTTP/ \
/raid/HTTP_snapshot/hourly.0/HTTP_hourly/
that works good but, the excluded files was not excluded!
so, I've copied and pasted directly in bash the command and it works perfectly!!
Is there any suggestion?
Thanks to all.
Ciao
Franco
first, sorry for my elementary English.
I'm triing to use rsnapshot to backup a folder on my server containing
some websites, for obvious motives I'd like to exclude some files like
access and error logs, so, this is my .conf extract:
rsync_short_args -aAXvrsync_long_args --delete --numeric-ids
--delete-excluded# The include and exclude parameters, if enabled,
simply get passed directly# to rsync. If you have multiple
include/exclude patterns, put each one on a# separate line. Please look
up the --include and --exclude options in the# rsync man page for more
details on how to specify file name patterns. # exclude
'.*/log/access.log'exclude '.*/log/20*-access.log.gz'exclude
'.*/log/error.log'exclude 'tmp/PHPSESSID*'
the rsync command explode is:
/usr/bin/rsync -aAXv --delete --numeric-ids --delete-excluded \
--exclude='.*/log/access.log' --exclude='.*/log/20*-access.log.gz' \
--exclude='.*/log/error.log' --exclude='tmp/PHPSESSID*' \
--link-dest=/raid/HTTP_snapshot/hourly.1/HTTP_hourly/ /HTTP/ \
/raid/HTTP_snapshot/hourly.0/HTTP_hourly/
that works good but, the excluded files was not excluded!
so, I've copied and pasted directly in bash the command and it works perfectly!!
Is there any suggestion?
Thanks to all.
Ciao
Franco