Jump to content
funtoo forums
Sign in to follow this  
artemeciagreen

Taking a system backup as a tar archive.

Recommended Posts

you can use that of course is as the Stage 3 is compress don't have any problem 

 

but you can use a personal script, I use that 

 

more faster but more size on disk : 

tar -cvpf /stage4.tar.xz --directory=/ --exclude=/stage4.tar.xz --exclude=/dev/* --exclude=/lost+found --exclude=/mnt/* --exclude=/proc/* --exclude=/run/* --exclude=/sys/* --exclude=/tmp/* --exclude=/var/log/* --exclude=/var/run/* --exclude=/var/tmp/* /

or that more slow(very slow) but less than half of the other option :

tar -cpvf - --directory=/ --exclude=/stage4.tar.xz --exclude=/dev/* --exclude=/lost+found --exclude=/mnt/* --exclude=/proc/* --exclude=/run/* --exclude=/sys/* --exclude=/tmp/* --exclude=/var/log/* --exclude=/var/run/* --exclude=/var/tmp/* . | xz -9e -c - > /stage4.tar.xz

of course you can change the exclude folders and files as you wish.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×