Tar command for backup/restore in network ?

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

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

    To take the backup into remote tape device

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


B. Restore the backup from remote server:-

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

0 comments:

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks