Jump to content

doing backups using tar


crp

Recommended Posts

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.

Link to comment
Share on other sites

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
  • Like 1
Link to comment
Share on other sites

V.T. Eric Layton

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
  • Like 1
Link to comment
Share on other sites

http://www.howtogeek.com/135533/how-to-use-rsync-to-backup-your-data-on-linux/?PageSpeed=noscript

 

http://www.howtogeek.com/175008/the-non-beginners-guide-to-syncing-data-with-rsync/?PageSpeed=noscript

 

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

 

Warning: Advanced Geeks Only
:Laughing:
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...