Oon-Ee Ng
2016-08-06 22:37:43 UTC
Summary: I'd like to use rsnapshot only for rotation, is that
possible? Can sync_first do rotation only (including hard link
copying) WITHOUT ever running sync?
Detailed Explanation:
I have a server with a larg-ish hard disk attached. Backups are done
from multiple machines (Linux using ssh+rsync, windows using cygwin
ssh+rsync, Android using sftp). The resulting folders for 2 machines
would look something like:-
/mnt/HDD/A
/mnt/HDD/B
I'm already using rsnapshot for some months, so I have:-
/mnt/HDD/snapshots/daily.0/A
/mnt/HDD/snapshots/daily.0/B
/mnt/HDD/snapshots/daily.1/A
/mnt/HDD/snapshots/daily.1/B
/mnt/HDD/snapshots/daily.2/A
/mnt/HDD/snapshots/daily.2/B
and so on, including weekly/monthly intervals.
There's actually two full copies of the data on this server. For
machine A, this is a copy at /mnt/HDD/A and another copy at
/mnt/HDD/snapshots/daily.0/A. I'd like to save some space, and imagine
I could perhaps do something like this:-
1. Tell rsnapshot to only rotate (mv daily.5->daily.6, mv daily.4->daily.5 ....)
2. Tell rsnapshot to do hard linking from daily.0 to daily.1
My intention is that machine A would run a backup rsync to
/mnt/HDD/snapshots/daily.0 instead of /mnt/HDD/A. In my understanding,
that would mean there's only one full copy of the data, and if the
data never changed, the backup machine would only take up as much size
as the sum of all machines which are sending backups.
Please advise if:-
1. The above is flawed and impossible as a concept.
2. rsyncs during the rsnapshot run would corrupt the backup
3. The sync_first option can do what I want
Thank you for your time.
------------------------------------------------------------------------------
possible? Can sync_first do rotation only (including hard link
copying) WITHOUT ever running sync?
Detailed Explanation:
I have a server with a larg-ish hard disk attached. Backups are done
from multiple machines (Linux using ssh+rsync, windows using cygwin
ssh+rsync, Android using sftp). The resulting folders for 2 machines
would look something like:-
/mnt/HDD/A
/mnt/HDD/B
I'm already using rsnapshot for some months, so I have:-
/mnt/HDD/snapshots/daily.0/A
/mnt/HDD/snapshots/daily.0/B
/mnt/HDD/snapshots/daily.1/A
/mnt/HDD/snapshots/daily.1/B
/mnt/HDD/snapshots/daily.2/A
/mnt/HDD/snapshots/daily.2/B
and so on, including weekly/monthly intervals.
There's actually two full copies of the data on this server. For
machine A, this is a copy at /mnt/HDD/A and another copy at
/mnt/HDD/snapshots/daily.0/A. I'd like to save some space, and imagine
I could perhaps do something like this:-
1. Tell rsnapshot to only rotate (mv daily.5->daily.6, mv daily.4->daily.5 ....)
2. Tell rsnapshot to do hard linking from daily.0 to daily.1
My intention is that machine A would run a backup rsync to
/mnt/HDD/snapshots/daily.0 instead of /mnt/HDD/A. In my understanding,
that would mean there's only one full copy of the data, and if the
data never changed, the backup machine would only take up as much size
as the sum of all machines which are sending backups.
Please advise if:-
1. The above is flawed and impossible as a concept.
2. rsyncs during the rsnapshot run would corrupt the backup
3. The sync_first option can do what I want
Thank you for your time.
------------------------------------------------------------------------------