Tar command for backup/restore in network ?

A. Take the backup of the directory "/data" into the remote server (with the IP address @ the location "/backup"

tar zcvf - /data | ssh root@ "cat > /backup/data.tar.gz"

    To take the backup into remote tape device

tar cvzf - /data | ssh root@ "cat > "/dev/mt0"

B. Restore the backup from remote server:-

# cd /restore
#ssh root@ "cat /backup/data.tar.gz" | tar zxvf -

Post a Comment