Pre-upgrade, Online, Full System Backup Script
|
3rd Aug, 2014, 01:42 AM
Post: #1
|
|||
|
|||
Pre-upgrade, Online, Full System Backup Script
Hello all,
After reading of problems encountered by people upgrading to new Xbian releases, I created a script that allows for point-in-time restore of an Xbian system. It basically creates an an archive of every file on your system. Since Xbian runs on Linux, it's possible to roll back the entire system just by extracting the archive. The following script creates two scripts, /root/fullbackup.sh and /root/fullrestore.sh. It then runs /root/fullbackup.sh. When it finishes running you can upgrade with confidence knowing that you can go back to the restore point. I recommend you run each block individually, instead of as a single script. You only have to run this script once. Code: # Become root If you ever want to back up again, you only need to run Code: sudo /root/fullbackup.sh If the upgrade fails, roll the system back with Code: sudo /root/fullrestore.sh Most of this was poached from other sites, some of which are: http://unix.stackexchange.com/questions/98124/how-to-include-or-add-dev-with-tar-one-file-system http://www.aboutdebian.com/tar-backup.htm |
|||
5th Aug, 2014, 01:10 AM
Post: #2
|
|||
|
|||
RE: Pre-upgrade, Online, Full System Backup Script
Or you could just use the inbuilt btrfs snapshot and rollback function.
I also have a feeling this will not operate as you believe as btrfs is a journalled system, and sync points will be missed with your method. Thanks for sharing. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
How to modify "system backup" alert | qoop | 6 | 7,944 |
6th May, 2022 11:46 AM Last Post: heravinluca |
|
[PROBLEM] System Backup - Restore Fails | husntvar | 3 | 10,105 |
16th Sep, 2017 04:11 AM Last Post: Nachteule |
|
NFS boot and backup script with LVM snapshot | Fabio72 | 0 | 6,327 |
13th Feb, 2014 02:14 AM Last Post: Fabio72 |