[plug] scp inflating sparse files
nick at ucc.gu.uwa.edu.au
Mon Feb 25 21:16:04 WST 2008
On Mon, Feb 25, 2008 at 04:28:18PM +0900, Richard Meyer wrote:
> I think it IS sparse files - see
> http://forums.fedoraforum.org/showthread.php?t=114579 where they say
The forum goes on to mention "rsync -S" and that dump/restore are
available for ext2/ext3. Or tar.
"rsync -H" is another possibility - if you happened to have 130 CD .iso
files all hard linked to one another, they'd all be coverted to separate
copies when you scp'ed them.
On Mon, 2008-02-25 at 10:14 +0900, rennie wrote:
[why does this create +100GB on from c.a. 10GB of data?]
> # scp -pr -P 13713 /home/rennie/ root at 10.1.1.8:/home/LaptopBackup
rsync -e 'ssh -p 13713' -avzSH /home/rennie/ root at 10.1.1.8:/home/LaptopBackup
rsync -S has a side effect - it will rescan and send all those blocks
of zeros. They'll compress well, but it'll be slower. -H has the side
effect that it'll have to remember the inode of every file, but that
shouldn't be a big problem.
Nick Bannon | "I made this letter longer than usual because
nick-sig at rcpt.to | I lack the time to make it shorter." - Pascal
More information about the plug