View Single Post
  #9   (View Single Post)  
Old 7th December 2010
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Quote:
Originally Posted by phoenix View Post
[*]rsync from backups server directory into ~/mnt/
... I just wonder, rsync(1) is great for backup, but restore is only one way 'stream' without checking for file contents changes etc. so using 'raw' tar(1) pipe should make the restore a lot faster (especially if there are a lot small files):
backup_server # tar -cf - /servers/host | ssh -c blowfish root@host "tar -C ~/mnt -xpf -"

... and with really good compression for slow networks:
backup_server # tar -cf - /servers/host | gzip -9 -c | ssh -c blowfish root@host "tar -C ~/mnt -xzpf -"

... even better then gzip(1) with xz(1):
backup_server # tar -cf - /servers/host | xz -9 -c | ssh -c blowfish root@host "xz -d -c | tar -C ~/mnt -xpf -"
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote