Wednesday, February 11, 2009

Backup with ssh

One possibility :

dd if=/dev/hda | ssh xxuser@xxmachine "cat > /home/xxuser/backup.bin "

Another possibility :

tar cvfj - /important_dir | ssh xxuser@xxmachine "cat > /home/xxuser/backup.tar.bz2 "

0 Comments:

Post a Comment

<< Home