Backing Up Selected Files Only

The following commands will backup only the files found by the search command

 1. cd /directory
 2. tar cvf files.tar `find . -name "pattern -print`

Backing Up and Restoring to Remote Systems

To backup some files to a tape drive on a remote system:

  tar cvfb - 20 filenames | rsh hostname dd of=/dev/tape obs=20b

To backup a directory to a directory on a remote system:

  tar cvf - 20 /directory | rsh hostname "(cd /path; tar xvf - )"

To do a restore from a tape drive on a remote system:

  rsh hostname dd if=/dev/tape bs=20b | tar xvBfb - 20

Recent Changes

Contribute to this wiki

Why not help others by sharing your knowledge? Contribute something to this wiki and join out hall of fame!
Contact us for a user name and password