I know how to backup a filesystem with tar and restore it later, but i'd like to know how to do that with a remote system. I'm really terrible at all command piping stuff and i can't simply adapt the tutorials to my needs. Any help would be appreciated. What i'd like to do is to login as root@remotemachine and issue a tar command on the entire / directory that would save the resulting archive to my local machine. And then i'd like to do it backwards (restore). I've seen some commands on the net ... something like:
ssh -something root@remotemachine "cd /; tar -cpf - ." | tar -xf -
I don't remember it exactly but i now that this command copied the filesystem over to my computer and i don't know how to change it to create an archive instead.