On 04/06/2015 10:14 AM, jdd wrote:
Le 06/04/2015 19:11, don fisher a écrit :
I can give more details on how I do my backup if desired.
I could take it, thanks!
jdd
My initial goal was to be able to have two identical systems. During the course of operation, numerous packages were added or updated which did not made a system reinstall appear a simple, valid option. I had helpful emails from many members of the list, but I will not include their names to avoid their incrimination. First I installed an openSuse 13.2 system on my 500GB USB drive. I figured that installing openSuse would establish the btrfs, the correct /boot entries for that drive, along with the correct volume IDs in fstab. These entries are exclude form overwrite in the attached excludes file. I then mounted the USB / and /home partitions, on my system at /mnt/usr11 and /mnt/usr12. These are the first two entries in the attached script, commented out because for now, I do them by hand. I then did an rsync from primary / to / on the USB drive, and from primary /home to the /home on the USB drive. The two rsync commands in the included file are different because I desired an exact copy, and rsync normally pays attention to file creation dates. But if the openSuse system on the USB drive was created after the one on my primary system, files there could have later dates and not be updated. Therefore I used the -c switch to rsync telling it to match checksums (on the rsync command target for the root directory). I let rsync in the /home partition match dates to avoid needless computation of checksums. I have also attached my excludes file. There may be more probably in /var, that could be excluded. But so far this works. When the system boots I assumed that it would overwrite any files present that it does not require. My background is as an EE, spent most of my time in image processing, real time applications and assembler code. So please forgive any glaring errors in formats. Never took a computer science course:-( Suggestions for improvements would be appreciated. (Also, the dot at the start of my excludes file name is missing, Thunderbird would not show the . files to allow their attachment :-) Don