3
2
I am doing a remote backup. This are my rsnapshot config.
config_version 1.2
snapshot_root /data/sbackup/
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_ssh /usr/bin/ssh
cmd_logger /usr/bin/logger
interval alpha 2
interval beta 2
interval gamma 2
interval delta 1
ssh_args -p xxxx
verbose 3
loglevel 4
logfile /var/log/rsnapshot/
exclude_file /data/xxxxx.exclude
rsync_long_args --stats --delete --numeric-ids --relative --delete-excluded
lockfile /var/run/rsnapshot.pid
backup root@xx.xx.xx.xxx:/ xxxxx-server/
I have added this bottom lines in exclude_file
+ /root
+ /backups/mysqldb/latest
+ /etc/automysqlbackup
+ /etc/imscp
+ /etc/postfix
+ /etc/fail2ban
+ /etc/dovecot
+ /etc/apache2
+ /etc/ssh
+ /etc/ssl
+ /etc/php5
+ /etc/cron.d
+ /usr
+ /var/mail
+ /var/www
+ /var/log
- /var/cache
- /boot
- /home
- /opt
- /etc
- /*
But after doing a rsync I am only getting full root
& usr
directory's. No other mentioned +
path files/sub directories are getting downloaded.
I want +
directories to be includes and -
not to be includes.
What I am doing wrong?.
I have changed my decision and marking this better explained as final answer. – Tuhin Bhuiyan – 2016-04-21T05:48:59.310