Results 1 to 1 of 1

Thread: tar system back and restoring scripts

  1. #1
    Join Date
    Dec 2010
    Beans
    0

    tar system backup and restoring scripts

    After studying Heliode's tutorial (http://ubuntuforums.org/showthread.php?t=35087), I have written a pair of backup and restore scripts as my script learning exercise.


    Backup script :
    Basically the same as Heliode's tutorial.
    The backup script does not support command line option.

    Restore script :
    targeted at fully automating the restore processes to a new disk drive, which has the following features :
    1. repartitioning the target to 1-3 partitions including swap
    2. change the file system of the restored system, also change to /etc/fstab to mount the new file system
    3. restore MRB so that a bootable system can be obtained (use chroot grub-install)
    4. option -u to force to change the target's fstab and grub to use UUID for booting and mounting
    5. option -r=new_passwd to reset the root password of the target


    The restore script supports command line options, e.g.:
    restore-rfs.sh -b=/rfs_backup/Ubuntu10.04.tgz -f=ext4 -p -t=5000 -o=4096 -u


    If you are interested in these scripts, please try them and let me know if there is any problem.


    tar-backup-restore-0.30.zip
    Last edited by akkdx; January 6th, 2011 at 08:23 AM. Reason: new version of script 0.30

Tags for this Thread

Bookmarks

Posting Permissions

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