On Thu, May 08, 2008 at 02:35:50PM +0200, Sam Przyswa wrote: > > > > > We have to change our BackupPC server to a new machine, how to copy > > > > > the > > > > > entire BackupPC directory (120Gb) to an other machine ? > > > > > > > > > > I tried rsync, it crash after a long, long time, I tried scp but it > > > > > don't pass the link and the dest directory become out of size after > > > > > transferring about 50% of files... > > > > > > > > > > What is the right way to transfert a BackupPC with 120Gb of files ? > > > > > > > > An often suggested method is using dd and growing the filesystem > > > > afterwards. This will probably be a lot faster as dd doesn't need to > > > > know anything about the file structure and things like hardlinks. > > > > > > Yes but the the machines are on Internet not on your office, we have to > > > do that over the net. I never do a dd over ssh !? > > > > It would work like this: > > > > oldserver# dd if=/dev/backuppc-filesystem bs=1M | ssh -c blowfish -C -o > > CompressionLevel=9 newserver "dd of=/de/newfilesystem bs=1M" > > Why set option bs=1M ?
To make dd read 1 megabyte at a time, hoping it will increase throughput. I'm not sure about the default block size, but I suppose, it is only 512 bytes, so a lot of read() calls to the OS are required, raising CPU load and possibly lowering throughput. > > (Of course, the filesystem has to be unmounted.) Later, you resize the > > file system to it's desired size, e.g. resize2fs /dev/newfilesystem > > Depending on the network connection between your servers, you might want > > to skip the compression (-C and -o). > > I am doing that between 2 LVM mounted filesystem and it's seems work, > the transfert is in progress. I skipped compression I think that the > backuppc files are already compressed, no ? The files are compressed, but not the file systems metadata nor the unused portions of the file system. Bye, Tino. -- "What we resist, persists." (Zen saying) www.craniosacralzentrum.de www.forteego.de ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
