Find the answer to your Linux question:
Results 1 to 2 of 2
m struggling with one question that Using cpio and tar utilities, in conjunction with the scheduling services cron and/or crond how will you implement the full backup with /data/* folder ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    6

    how to get backup using cpio and tar utilities

    m struggling with one question that Using cpio and tar utilities, in conjunction with the scheduling services cron and/or crond how will you implement the full backup with /data/* folder as the source and /dev/sda as the target (tape) at 9:00 PM daily except Saturday and Sunday.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    A tape device is /dev/st0 or /dev/nst0, but not /dev/sda

    The cron schedule should look like this
    0 21 * * 1-6

    Copy one directory to tape:
    tar -czf /dev/st0 /data/

    Are you aware, that you will have to do all the housekeeping yourself?
    - what files from which date are on which tape and on which position?
    - rewinding, positioning tapes
    - restoring

    Depending on the nature of your backup project, you could consider a more sophisticated apporach, like Bacula, the Open Source, Enterprise ready, Network Backup Tool for Linux, Unix, and Windows
    Last edited by Irithori; 12-17-2009 at 12:04 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...