Posted By

klovera on 09/21/11


Tagged

Bash backup copy


Versions (?)

Recursively copy a directory for backup


 / Published in: Bash
 

URL: http://snipplr.com/view/26670/

Kudos to http://snipplr.com/view/26670/

  1. # Used to backup directory and files
  2. #1. Create the backup directory using mkdir
  3. #2.
  4. cd /source; tar cf - . | (cd /target && tar xf -)

Report this snippet  

You need to login to post a comment.