On Thursday 23 March 2006 22:52, Bo Andresen wrote:
> On Thursday 23 March 2006 21:24, Michael Kintzios wrote:
> > What should I run to untar the rest of /usr (excluding /usr/portage) into
> > /dev/hda3 and at the same time delete it from within the gentoo_usr.tgz
> > archive, so that I get some space in /dev/hda2 to untar /usr/portage?
> > Really, what I think is needed here is untarring of the archive, while
> > untarred data is dynamically deleted immediately after untarred to make
> > space for more data to be untarred . . . do I make sense?
>
> You don't have to scp the archieve to the machine before unpacking it.
>
> http://gentoo-wiki.com/HOWTO_Backup#Securely_backing_up_a_filesystem_on_a_r
>emote_machine
>

Perhaps that link wasn't as useful to you as I thought when I transmitted it. 
Here are a couple of other examples. I think it requires GNU tar.

This compacts data recursively from /from/path and using gzip, pipes it 
through ssh and extracts it into /to/path:
# tar -zcf - /from/path | ssh desktop.homelinux.com "tar -C /to/path -xzf -"

And this just pipes through ssh and extracts using bunzip2 to /to/path on 
remote machine
# cat file.tar.bz2 | ssh desktop.homelinux.com "tar -C /to/path -xjf -"

-- 
Bo Andresen
-- 
[email protected] mailing list

Reply via email to