SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Changing backup destination
Author Message
Post Changing backup destination 
Hi,

Op Ma, december 4, 2006 18:45 schreef Jon:
This is primarily speculation, but I believe what you're seeing is the
correct behaviour.

The first thing Rsnapshot does when it launches is to copy the daily.n
to daily.n+1. It then start backing up up into daily.0. I believe the
backup behaviour is such that if a file exists in a previous backup, but
not the current one, that Rsnapshot creates a hardlink to that file from
daily.0 to whatever daily.n directory it exists in.

I think this is not true.
Daily.0 will reflect today's state, Daily.1 that of yesterday, etc.
But if a file has not changed, it will be a hard link to the first backup
of it that has been made in the past, say in Daily.n
But if a file changes from day to day, it will get stuffed as a complete
new file in each daily backup, thus occupying more space each day.
If a file is deleted, it will not be found in the recent backup, only in
previous backups; it certainly won't get hard linked in the daily.0. It
should be gone.


Therefore, I think you will continue to see those old directories until
such time as they "fall off" the backup rotation.

No, there must be some other explanation, that I can't think of.

That's how I understand it, but corrections are most certainly welcome.


Jon


Ryan x wrote:

I am currently trying out rsnapshot as a backup solution. I had this
line in my config file

backup /home/WWW-data server1-WWW-data

When I went in to view the backup, it had this structure:
server1-WWW-data/home/WWW-data

I didn't realize it was going to put the full path under there. So I
changed my config to just use this:

backup /home/WWW-data server1

So that I end up with server1/home/WWW-data


But my server1-WWW-data directory still exists in all my new backups.
Why is this?

I don't know, but in my configuration I use / after each directory:
backup /home/WWW-data/ server1/
Maybe that is vital.


Thanks,
-Ryan

Greets,
Marc



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Changing backup destination 
Hi,
Hi,

Op Ma, december 4, 2006 16:28 schreef Ryan x:
I am currently trying out rsnapshot as a backup solution. I had this
line in my config file

backup /home/WWW-data server1-WWW-data

When I went in to view the backup, it had this structure:
server1-WWW-data/home/WWW-data

I didn't realize it was going to put the full path under there. So I
changed my config to just use this:

backup /home/WWW-data server1

So that I end up with server1/home/WWW-data


But my server1-WWW-data directory still exists in all my new backups.
Why is this?

I did some experiments and had the same results. The reason is that the
last backup is copied before the changes are written to the newly made
copy.
Say, you have hourly.0 and hourly.1. Then at the start of rsnapshot,
hourly.1 is renamed to hourly.2 and hourly.0 becomes hourly.1. This last
one contains a directory server1-WWW-data. Then hourly.1 is copied to
hourly.0. Now hourly.0 consists of server1-WWW-data as does hourly.1. Then
changes are applied, to your new directory server1. That directory gets a
full backup, because it did not exist before.
And the result is a backup containing both directories in hourly.0. Etc.

If you want to get rid of the old server1-WWW-data directory, just remove
it from hourly.0, and eventually from the older backups that contain both
directories.

Hope this helps.
Greets
Marc



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB