Re: Tgz Backups
-----BEGIN PGP SIGNED MESSAGE-----
Γιώργος Πάλλας <firstname.lastname@example.org> writes:
> Merciadri Luca wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> I often backup everything of my Debian systems with the tgz utility.
>> Is it possible to boot a LiveCD, to put the whole content of the tgz
>> (assuming it is complete) on the partition (assuming there is enough
>> free space), and to reboot (assuming GRUB is okay)?
>> I would like to hear others' experience about this.
> yes, it is possible. I also keep backup of my system using tar* and I
> have at least once successfully restored a working, booting system
> after a failure.
> * tar use for backup: tar cvSj --exclude=/tmp --exclude=/proc
> --exclude=/lost+found --exclude=/dev --exclude=/sys
> /tmp/backup.tar.bz2 /
> and this is what I actually use in order to store the system backup in
> 4GB encrypted chunks, along with an encrypted index of all the files
> and an md5sum checksum of the archive (I love one-liners :-) ):
> time tar cvSj --exclude=/home/gpall/.local/share/Trash --exclude=/tmp
> --exclude=/proc --exclude=/lost+found --exclude=/dev --exclude=/mnt
> --exclude=/media --exclude=/sys / 2> >(gpg -z 9 -e -r gpall -o
> sysbackup-filelist.gpg) | gpg -z 0 -e -r gpall | tee >(split -b 4000m
> sysbackup.tbg.split_) | md5sum > sysbackup.tbg.md5
Nice. How do you restore your system with these archives?
I was using a simpler one:
dpkg --get-selections "*" > MyPackets && tar cvpfz backuptotal.tgz / --exclude=/proc --exclude=/lost+found --exclude=/backuptotal.tgz --exclude=/mnt --exclude=/sys --exclude=/media --exclude=/tmp
First year in civil engineering
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
-----END PGP SIGNATURE-----