On Sun, 2008-02-10 at 13:30 +0900, Thomas Gutzler wrote:
I came across a very annoying problem during my attempt to copy my
snapshot folders to another machine. I have to many files/hardlinks.
I tried the following for all snapshots at once
- rsync
- tar and nc
- cpio and nc
all with the same results: out of memory.
I can't rsync the snapshots one after the other because it would kill
the hardlinks between them. So I thought, why not rsync a certain
subdirectory of all snapshots at once and do that for all directories.
I tried the following in the dir, which contains my snapshots:
rsync -aHv */subdir/ remote:/backup/snapshots
hoping it would rsync hourly.0/subdir/, hourly.1/subdir/,
hourly.2/subdir/, ...
but in fact in only created whatever was in subdir/ directly in
/backup/snapshots/ on remote rather than /backup/snapshots/hourly.X/
What am I doing wrong?
You want the --relative option. But possibly a better approach
altogether is to copy the snapshots one after the other, each time
giving a --link-dest to the previous snapshot, just as rsnapshot did
when it made the snapshots in the first place.
Matt
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
