3.4 Try to back up the server

Now you can try to back up the server:

ssh oneilj@someserver "sudo tar cf - -C / home var" | tar tf -  
    

This command doesn’t store the archive file, but rather just lists the content of it. This is meant for testing the mechanism.

If you are to store the archive file, do something similar to the following:

ssh oneilj@someserver "sudo tar cf - -C / home var" > someserver.tar