Jump to content

Photo

Taking a system backup as a tar archive.

backups backup restore tar archive

2 replies to this topic

#1
artemeciagreen

artemeciagreen

    Member

  • Members
  • PipPip
  • 11 posts

Is it a good or bad idea to take a syste, backup by running:

tar cpJfv funtooLinux.tar.xz /

rather than making an iso image of the partition/disk. Does it matter?


  • Otakku likes this

#2
Otakku

Otakku

    Advanced Member

  • Members
  • PipPipPip
  • 62 posts
  • LocationBrazil

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.


  • Otakku, coosee and artemeciagreen like this

#3
artemeciagreen

artemeciagreen

    Member

  • Members
  • PipPip
  • 11 posts

Intersting, thanks.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users