Results 1 to 3 of 3

Thread: Which directories to exclude when backing system up with grsync?

  1. #1
    Join Date
    Apr 2012
    Beans
    21

    Which directories to exclude when backing system up with grsync?

    I have spent a lot of time setting up my Mythbox and I want to back it up in case of a hard drive failure or an update breaks something. Honestly if I had to start over I don't know if I could get it back the way it is now. I'm not afraid of the command line but I'm also far from a Linux wiz.

    Anyways, I was hoping to use grsync to backup my entire system. This way if anything at all goes wrong I can restore it to exactly the way it was before. I am going to exclude my recordings and videos so I can save disk space (my hard drive is 2 tb) and I don't really care if they end up being lost. Everything else (drivers, firmware, program installations, settings, database, etc.) I want to easily be able to restore. Other than the ones that I've listed below are there any other directories that I can exclude that take up significant space? Thanks

    /var/lib/mythtv/livetv
    /var/lib/mythtv/recordings
    /var/lib/mythtv/videos

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,617
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Which directories to exclude when backing system up with grsync?

    /proc, /sys, /run, and /dev should be excluded as well. They are not actually stored on your disk but created by the kernel at boot. My 12.04 system lists these if I run "mount":

    Code:
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    udev on /dev type devtmpfs (rw,mode=0755)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
    none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
    none on /run/shm type tmpfs (rw,nosuid,nodev)
    Notice that none of these are on the hard drive (e.g., /dev/sda1).
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Apr 2012
    Beans
    21

    Re: Which directories to exclude when backing system up with grsync?

    Quote Originally Posted by SeijiSensei View Post
    /proc, /sys, /run, and /dev should be excluded as well. They are not actually stored on your disk but created by the kernel at boot. My 12.04 system lists these if I run "mount":

    Notice that none of these are on the hard drive (e.g., /dev/sda1).
    Great, thank you! I've been playing around with the simulation mode in grsync and I came across a few more directories that I'm wondering about (my login is htpc):

    /home/htpc/.local/share/Trash (263mb)
    /home/htpc/.cache/chromium/Default/Cache (143mb)
    /home/htpc/.mythtv/themecache (1.4gb)
    /home/htpc/.mythtv/remotecache (196mb)
    /var/cache (256mb)

    The total size for my backup is about 9gb right now. Would any of these be dangerous to exclude? In other words, if I start from scratch and restore my system would it still function if these directories were empty? Thanks again for the help!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •