Tuesday, May 26, 2009

AIX - Backup Files from Remote Computer

The local host MUST be included in remote's hosts /etc/hosts.equiv file. The local host and user name MUST be included in the $HOME/.rhosts file at the user account at the remote machine.

Restores files FROM a remote tape drive on a host named 'Alpha'

#rsh Alpha -l roger "dd if=/dev/rmt0" | tar -xvf-

The tar command will write it's output to the rsh command which pipes the data to the remote host (Alpha) and the tape drive (/dev/rmt0). Specify -l if the local user is different from the remote user.

#tar -cvf- * | rsh Alpha -l roger "dd of=/dev/rmt0 bs=64k conv=block"

Uses the floppy drive device on node Alpha to store files in tar format.

#tar -cvf- * | rexec Alpha " dd of=/dev/fd0 bs=4096”

Commands for remote tape backup

#tar cvf - $DIRNAME | rsh $SYS dd of=$TAPEDEV

To retrieve the backed up info...

#rsh $REM dd if=$TAPEDEV | tar xvf –

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.