How to back up a live rootfs using rsync November 18, 2020 04:34PM |
Admin Registered: 13 years ago Posts: 18,997 |
apt-get install rsync
cp -a rsync.backup.daily /root/rsync.backup.daily chmod +x /root/rsync.backup.daily
echo "mybackuppasswd" > /root/rsync.backup.daily.pswd chmod 600 /root/rsync.backup.daily.pswd
apt-get install cronEdit the crontab
crontab -eAnd add the following line at the end (or replace/modify if this time slot is already in the crontab)
25 11 * * * /root/rsync.backup.dailyList the cron jobs to doublecheck
crontab -l
apt-get install logrotate
/var/log/rsync.backup.daily.log { missingok size 256k su root root create 0660 root root rotate 4 compress }
apt-get install rsync
RSYNC_ENABLE=true
cp -a rsyncd.conf /etc/rsyncd.conf
echo "mybackup:mybackuppasswd" > /etc/rsyncd.scrt chmod 600 /etc/rsyncd.scrt
apt-get install logrotate
/tmp/rsyncd.log { missingok size 256k su root root create 0660 root root rotate 8 compress }
/etc/init.d/rsync start
apt-get install rsync
cp -a rsync.backup.ondemand /root/rsync.backup.ondemand chmod +x /root/rsync.backup.ondemand
cd /media/BackupRootfs /root/rsync.backup.ondemand &
Re: rsync - How to setup rsync job to back up a live rootfs November 19, 2020 03:37AM |
Registered: 10 years ago Posts: 1,037 |
Re: rsync - How to setup rsync job to back up a live rootfs November 19, 2020 07:53AM |
Registered: 9 years ago Posts: 429 |
Re: rsync - How to setup rsync job to back up a live rootfs November 19, 2020 04:53PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: rsync - How to setup rsync job to back up a live rootfs November 19, 2020 09:41PM |
Registered: 10 years ago Posts: 226 |
Re: rsync - How to setup rsync job to back up a live rootfs November 19, 2020 10:51PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: How to back up a live rootfs using rsync November 27, 2020 06:22PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: How to back up a live rootfs using rsync November 29, 2020 02:33PM |
Registered: 6 years ago Posts: 183 |
/media/USB# /root/rsync.backup.ondemand <13>Nov 29 15:09:33 root[12560]: Started rsync on-demand backup for ppdebian <13>Nov 29 15:28:46 root[12683]: Finished rsync on-demand backup for ppdebian
Re: How to back up a live rootfs using rsync November 29, 2020 03:31PM |
Admin Registered: 13 years ago Posts: 18,997 |
/var/log/rsync.backup.daily.log /tmp/rsync.backup.daily.log
/tmp/rsyncd.log
Re: How to back up a live rootfs using rsync November 29, 2020 05:00PM |
Registered: 6 years ago Posts: 183 |
Re: How to back up a live rootfs using rsync November 29, 2020 06:53PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: How to back up a live rootfs using rsync November 29, 2020 11:37PM |
Registered: 6 years ago Posts: 183 |
Re: How to back up a live rootfs using rsync November 30, 2020 12:19AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: How to back up a live rootfs using rsync November 30, 2020 03:16AM |
Registered: 6 years ago Posts: 183 |
Re: How to back up a live rootfs using rsync November 30, 2020 06:17PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: How to back up a live rootfs using rsync November 30, 2020 10:39PM |
Registered: 6 years ago Posts: 183 |
Quote
If you writing code or scripts, you should really be using version control such as git or svn. And rsync backup daily using this process.
Re: How to back up a live rootfs using rsync February 21, 2021 04:50PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: How to back up a live rootfs using rsync January 01, 2023 05:16PM |
Admin Registered: 13 years ago Posts: 18,997 |