Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Mount /proc
- mount -t proc proc /proc
- # mount destination
- mount -t ntfs-3g /dev/sdb5 /mnt/data
- # backup root partition
- if [ $? ]; then
- /usr/sbin/partimage -b -z1 -o -d -f3 -M save /dev/sda3 /mnt/data/backup/$HOST_backup
- else
- echo "Could not mount /mnt/data!"
- sleep 5
- fi
- sync
- reboot -f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement