Rsnapshot schedule the backup for automatic execution
Rsnapshot backups en Gnu/Linux. (1/3)
Rsnapshot backups en Gnu/Linux. (2/3)
Rsnapshot backups en Gnu/Linux. (3/3)
The automation of the copies will be via cron. rsnapshot carries its own configuration file for cron /etc / cron.d / rsnapshot
$ sudo nano /etc/cron.d/rsnapshot
And we add or uncomment the following lines to launch daily copies, Weekly, Monthly and annual.
#0 */4 * * * root /usr/bin/rsnapshot hourly 30 3 * * * root /usr/bin/rsnapshot daily 0 3 * * 1 root /usr/bin/rsnapshot weekly 30 2 1 * * root /usr/bin/rsnapshot monthly 0 6 1 1 * root /usr/bin/rsnapshot yearly
We save the changes and you will be scheduled backups.
Check the space occupied by backup.
To see the space occupied by the backups use the following command.
$ sudo rsnapshot du
16M /backups/daily.0/
1,4M /backup/daily.1/
1,3M /backup/daily.2/
1,4M /backup/daily.3/
1,4M /backup/daily.4/
1,4M /backup/daily.5/
1,4M /backup/daily.6/
1,4M /backup/weekly.0/
25M total
I have 7 daily and copies 1 weekly as you can see the bulk of the data is always in daily.0 which is the last copy made and stored earlier copies only the differences. But if you browse through folders really all files (for hard links)
See the differences between the different backup.
To see these differences we use the following command
$ sudo rsnapshot -V diff daily.0 daily1
rsnapshot-diff -v /backup/daily.0 \
/backup/daily.1 Comparing /backup/daily.1 to /backup/daily.0 + /backup/daily.0/localhost/etc/cups/subscriptions.conf + /backup/daily.0/localhost/etc/cups/subscriptions.conf.O - /backup/daily.1/localhost/etc/cups/subscriptions.conf - /backup/daily.1/localhost/etc/cups/subscriptions.conf.O Between /backup/daily.1 and /backup/daily.0: 2 were added, taking 482 bytes; 2 were removed, saving 482 bytes;
It indicates that files have changed between two backups. And the space occupied by these changes.
The following tutorial will explain how to make remote backups through ssh
Rsnapshot backups en Gnu/Linux. (1/3)
Rsnapshot backups en Gnu/Linux. (2/3)
Rsnapshot backups en Gnu/Linux. (3/3)