Question

I am backuping our servers with rsnapshot on daily bases. Everything works fine and I have my data in daily.0, daily.1 ... daily.6

Now, I am using rsync to backup the backups from one to another NAS server. The problem is that with rsync, on my 2nd backup server (NAS) I have the same data structure with all the daily from 0 to 6.

The big proble is that the NAS is recognizing the data from each daily as sing le physical files, so I have my data multiplied by 7 at the end.

My question is: Is there any possibility to use rsync and have on my 2nd server single files only, without all the daily.0 to daily.6, so I can avoid that the linux system thinks that I have 6 times more data that I have realy.

Was it helpful?

Solution

Rsync should only take files that have been modified, so you only have to backup the old data once.

But... (I'm not sure your OS or environment), you can pass only the most recent file to rsync like this

latest=`ls -t|head -1` ; rsync $latest backup_location

(my source)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top