5
2
I'm trying to get rsnapshot working for remote backups (via ssh). I have a working configuration and I can perform all my backups.
In my conf I have enabled sync_first=1
. As I understand it, this means that I have to always first run the rsnapshot sync
command to actually go and grab the backup files first, then run the rsnapshot hourly
command to simply symlink and rotate the backups.
Now the problem. I'm not sure if this is by design, but I am noticing that every time I run rsnapshot sync
, every file on my remote machine it being backed again regardless of whether it has changed since the last backup. This means the rsnapshot sync
command takes > 1hr.
Is this the designed behaviour?
Should I be running sync
every hour before running hourly/daily/weekly
?
How is your BACKUP INTERVALS configuration in /etc/snapshot.conf ? – rubo77 – 2016-07-10T07:14:45.737
I seem to have no problem here, but I use only daily backups: http://serverfault.com/questions/788992/configuring-rsnapshot-to-only-daily-backups-with-sync-first
– rubo77 – 2016-07-10T10:11:59.690@rubo77 You can find the full configuration in this Github gist.
– Frank Kusters – 2016-07-11T13:40:35.323Should I run sync before smallest interval or before all and why? – Mindau – 2017-01-03T21:17:35.967
@Mindau Before the smallest interval, because the smallest interval rotates the
.sync
directory to<smallestinterval>.0
. – Frank Kusters – 2017-01-03T21:52:13.497@FrankKusters and what rotates to bigger interval? – Mindau – 2017-01-03T22:07:29.143
1
@Mindau I advise you to read the How it works section of rsnapshot's documentation. It's only one screenful and not very technical.
– Frank Kusters – 2017-01-04T06:30:13.493