Jump to content


doing backups using tar


  • Please log in to reply
5 replies to this topic

#1 OFFLINE   crp

crp

    Discussion Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 3,084 posts

Posted 30 March 2015 - 07:25 PM

is the sys directory supposed to be skipped when doing backups?
tar: /sys/module/e1000/sections/.strtab: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/.symtab: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/.module_sig: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/.bss: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/.gnu.linkonce.this_module: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/.data.read_mostly: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/.data: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/__versions: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/__param: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/.smp_locks: File shrank by 4077 bytes; padding with zeros
tar: /sys/module/e1000/sections/.rodata.str1.1: File shrank by 4077 bytes; padding with zeros
and about a few hundred more of the same.
Of all tyrannies, a tyranny sincerely exercised for the good of its victims may be the most oppressive. It would be better to live under robber barons than under omnipotent moral busybodies. The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end for they do so with the approval of their own conscience. ~C. S. Lewis

#2 OFFLINE   amenditman

amenditman

    Board Bigwig

  • Forum MVP
  • 2,667 posts

Posted 30 March 2015 - 07:52 PM

Yes, you should skip /sys, /dev/, /proc, /tmp, /run, /media, /lost+found, and most likely /mnt.
All of those are either temporary and created when the system starts or are just junk.

If you have stuff mounted at /mnt that you want backed up you can include it in your tar.

Edited by amenditman, 30 March 2015 - 07:52 PM.

Tweak it 'til it breaks, then learn how to fix it.

L.I.F.E. (Linux Is For Everyone)

Registered Linux User # 474004 (06/16/2008)


REGLUE

Recycled Electronics and Gnu/Linux Used for Education

Reglue, in a nutshell, gives free Linux computers to under privileged children and their families.

www.reglue.org


#3 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,322 posts

Posted 30 March 2015 - 07:54 PM

If you asked me to come up with a list of backup options for Linux, Tar would not even make my list. It is a throw-back to magnetic tape storage days when storage space was a premium and everything had to be compressed and re-compressed and further compressed before it could be backed up practically. In today's era of HUGE mechanical and solid state drives, the Tar method is just not needed.

Personally, I mirror my entire operating system hard drive onto an identical drive using grsync. That's all that needs to be done. The odds of both drives failing simultaneously are quite high. However, that's me. If you prefer using Tar to compress and backup your system, that's cool beans. Unfortunately, I don't know do-do about it, so can't really advise. Guess I shouldn't have posted anything at all, huh?

Clear as chocolate pudding and not nearly as useful. Par for my advice. ;)

Edited to correct spelling error. ~Eric

Edited by V.T. Eric Layton, 30 March 2015 - 07:56 PM.


#4 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 23,527 posts

Posted 30 March 2015 - 07:54 PM

Yes, as /sys is

Quote

sysfs is a ram-based filesystem [...]. It provides a means to export kernel data structures, their attributes, and the linkages between them to userspace.

http://superuser.com...ry-sys-in-linux
Posted ImagePosted Image Posted Image
CNI Radio/G+ Profile/Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#5 OFFLINE   crp

crp

    Discussion Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 3,084 posts

Posted 30 March 2015 - 08:30 PM

I need a backup that will compress to fit onto the backup device. can rsync do differential backups when it is compressing as well?
Of all tyrannies, a tyranny sincerely exercised for the good of its victims may be the most oppressive. It would be better to live under robber barons than under omnipotent moral busybodies. The robber baron's cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end for they do so with the approval of their own conscience. ~C. S. Lewis

#6 OFFLINE   abarbarian

abarbarian

    Thread Kahuna

  • Forum MVP
  • 5,512 posts

Posted 31 March 2015 - 04:58 PM

http://www.howtogeek...eSpeed=noscript

http://www.howtogeek...eSpeed=noscript

If you read these two articles you will have all the info you need on rsync. Mind you they come with a warning,

Quote

Warning: Advanced Geeks Only
:Laughing:
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users