For reference here is what I'm backing up currently.
First I do a tar.gz of some folders to a backup folder located inside the /home/bkpusr/ user directory:
After this I rsync the /home/bkpusr/ directory to another server, keeping the version control on that server.
This is using SSH and a Task Scheduler (yes archaic I know, but works).
Do you have any tips to improve this?
First I do a tar.gz of some folders to a backup folder located inside the /home/bkpusr/ user directory:
Code:
tar -czPf /home/bkpusr/backups/etc_apache2.tar.gz /etc/apache2
tar -czPf /home/bkpusr/backups/etc_bind.tar.gz /etc/bind
tar -czPf /home/bkpusr/backups/etc_dovecot.tar.gz /etc/dovecot
tar -czPf /home/bkpusr/backups/etc_mysql.tar.gz /etc/mysql
tar -czPf /home/bkpusr/backups/etc_postfix.tar.gz /etc/postfix
tar -czPf /home/bkpusr/backups/etc_sentora.tar.gz /etc/sentora
tar -czPf /home/bkpusr/backups/etc_ssh.tar.gz /etc/ssh
tar -czPf /home/bkpusr/backups/lib_ufw.tar.gz /lib/ufw
tar -czPf /home/bkpusr/backups/root.tar.gz /home/bkpusr --exclude='/home/bkpusr/backups'
tar -czPf /home/bkpusr/backups/var_sentora.tar.gz /var/sentora
After this I rsync the /home/bkpusr/ directory to another server, keeping the version control on that server.
This is using SSH and a Task Scheduler (yes archaic I know, but works).
Do you have any tips to improve this?
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com