Remote Tape Backups on Linux
My environment
Linux OS: Oracle Linux 5.4
Tape drive attached server 192.168.1.1
oftest
Backup files located server 192.168.1.2 ofdev
The Command for backup
Here you will
need the oftest server root password
when you execute the below command it will ask the
oftest server password in order to backup or restore
tar
cpvf - . | ssh user@host_with_tape_drive "/bin/dd of=/dev/st0"
Command
cd /backup
tar cpvf - . | ssh root@ftest
"/bin/dd of=/dev/st0"
Note :- Above command will be backup
/backup folder to remote server tape drive oftest server tape drive
The Command for Restore
ssh
user@host_with_tape_drive "/bin/dd if=/dev/st0" | tar xvpf -
cd /restore
ssh
root@oftest "/bin/dd
if=/dev/st0" | tar xvpf –
ReplyDeleteYour post has given very valuable information, keep posting the same information like this always.
Remote Backup Solution | Data Protection And Governance