Re: [opensuse-factory] Updating in general ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-ID: <alpine.LSU.1.00.0806181437200.28317@nimrodel.valinor> El 2008-06-18 a las 14:18 +0200, Erik jakobsen escribió: You forgot to email to the list.
Carlos E. R. skrev:
Everything! :-)
I rsync to an external HD.
And I print the partition table, too, and fstab.
Ok fine Carlos...
Do you have made scripts using rsync, that I can see.
Nothing complicated: DESTINO=/mnt/usb/usb_sg60/uno # --progress OPTIONS="--archive --acls --xattrs --hard-links --del --stats --human-readable " DESTINO=/mnt/usb/usb_sg60/dos PREVIO=/mnt/usb/usb_sg60/uno mount /mnt/usb/usb_sg60 MOUNT=`mount | grep /mnt/usb/usb_sg60` if ! test -n "$MOUNT" ; then echo "*** ERROR: No se pudo montar el dispositivo de respaldo en usb, abortando" echo echo $MOUNT exit fi function backup_sistema() { QUE=$1 echo "--->> $QUE" if ! test -d $DESTINO"/system$QUE" ; then mkdir $DESTINO"/system$QUE" fi nice rsync $OPTIONS --link-dest=$PREVIO/system --exclude=/usr/local \ $QUE $DESTINO/system/ echo -e "-------===========------- $QUE\n" } function backup_casa() { QUE=$1 echo "--->> $QUE" if ! test -d "$DESTINO/casa$QUE/" ; then mkdir "$DESTINO/casa$QUE/" fi nice rsync $OPTIONS --link-dest=$PREVIO/casa --exclude=/usr/local \ $QUE $DESTINO/casa/ echo -e "-------===========------- $QUE\n" } backup_casa "/home/cer" backup_casa "/root" backup_sistema "/etc" backup_sistema "/var" backup_sistema "/svr" backup_sistema "/bin" backup_sistema "/sbin" backup_sistema "/usr" backup_sistema "/opt" backup_sistema "/lib" backup_sistema "/boot" df -h /mnt/usb/usb_sg60/ umount /mnt/usb/usb_sg60 play /usr/share/sounds/au/gong.au One of many possible methods. The complexity is because I have partitions that are for "data" that is not involved during upgrade (is backed up separately), or because some partitions are "test" paritions for other operating systems or versions , or because it doesn't make sense to backup an encripted partition as clear data. So I list one by one the directories I want to backup.
About the part table and fstab.
Why that as they are to be found in the backup :-) ?
Not in paper :-) I have the files backed up, but I print them. The info may come handy when restoring, specially so if you have to rebuild something. Ah, the partition table is the output of fdisk command, it is not a file. One of the problems with upgrading, is that Yast not always mounts everything needed. It some times forgets a partition. Having the printed list helps finding that particular problem before it is too late. - -- Saludos Carlos E.R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIWQJJtTMYHG2NR9URAhDQAJ4ybVLhTZFw42H3BNreWQBWcOu4eQCgj5Bh Rq4JaiVKiUEiWQZVE4DWR9s= =z49L -----END PGP SIGNATURE-----
participants (1)
-
Carlos E. R.