Pre-upgrade, Online, Full System Backup Script - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Others (/forum-24.html) +--- Thread: Pre-upgrade, Online, Full System Backup Script (/thread-2413.html) |
Pre-upgrade, Online, Full System Backup Script - alangibson - 3rd Aug, 2014 01:42 AM 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 RE: Pre-upgrade, Online, Full System Backup Script - IriDium - 5th Aug, 2014 01:10 AM 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. |