User Tools

Site Tools


linux:gentoo-backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:gentoo-backup [2014/08/09 23:44] – created percylinux:gentoo-backup [2016/05/05 13:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Gentoo System Backup ====== ====== Gentoo System Backup ======
 +I just want to backup my Gentoo System, like a stage-X, so I can restore it when the system is broken, just with one command like
 +  tar xvf gentoo-stage-x.tgz
  
-Refer to+So I found a script in the Gentoo forum  
 +  *  a great backup system for gentoo workstations:http://forums.gentoo.org/viewtopic-t-65669.html 
 +After some minor adjust, the script works as I want.
  
-http://forums.gentoo.org/viewtopic-t-65669.html+Actually, this script is really simple, the core command is: 
 +  cat ${list} | xargs tar zlcvf  ${BKPDIR}/${type}.`date +%Y-%m-%d-%H%M`.${ext} 
 +Just use the tar to create the package according to the directory list in sys.lst
  
 <code BASH backup.sh> <code BASH backup.sh>
/var/www/dokuwiki/wiki/data/pages/linux/gentoo-backup.txt · Last modified: 2016/05/05 13:07 by 127.0.0.1