Find the answer to your Linux question:
Results 1 to 7 of 7
I am going to use 'rsnapshot' to create backups of my local & remote computers. My intension is that I can use these backups to restore disk images when needed ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    38

    rsnapshot backups

    I am going to use 'rsnapshot' to create backups of my local & remote computers. My intension is that I can use these backups to restore disk images when needed -> install Linux from scratch and then copy the subdirectories from 'rsnapshot' backup to the new Linux installation.
    My question is ... what subdirectories should be excluded in the backup. Now I have following excluded ... but are they the right ones or have I missed something:

    exclude /proc
    exclude /lost+found
    exclude /mnt
    exclude /media
    exclude /sys
    exclude /home/lost+found
    exclude /tmp

  2. #2
    Just Joined!
    Join Date
    Mar 2010
    Posts
    79
    Quote Originally Posted by zkab View Post
    I am going to use 'rsnapshot' to create backups of my local & remote computers. My intension is that I can use these backups to restore disk images when needed -> install Linux from scratch and then copy the subdirectories from 'rsnapshot' backup to the new Linux installation.
    My question is ... what subdirectories should be excluded in the backup. Now I have following excluded ... but are they the right ones or have I missed something:

    exclude /proc
    exclude /lost+found
    exclude /mnt
    exclude /media
    exclude /sys
    exclude /home/lost+found
    exclude /tmp
    I exclude the same directories, so as far i know that is correct.

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    38
    What about 'exclude /dev'

  4. #4
    Just Joined!
    Join Date
    Mar 2010
    Posts
    79
    Sorry, you are right. I shouldn't trust "manual" comparing (especially not when tired).
    Here is my command:
    Code:
    rsync -auv -n --delete-after \
    --exclude="/home/markus/[a-zA-Z0-9]*" \
    --exclude="/home/markus/.VirtualBox/*" \
    --exclude="/home/xepanche/[a-zA-Z0-9]*" \
    --exclude="/proc/*" \
    --exclude="/lost+found/*" \
    --exclude="/dev/*" \
    --exclude="/mnt/*" \
    --exclude="/media/*"  \
    --exclude="/sys/*" \
    --exclude="/tmp/*" \
    / /media/backup >dry.txt
    It excludes the users data, but not the configs.

  5. #5
    Just Joined!
    Join Date
    Jul 2007
    Posts
    38
    Forgot to ask one thing.
    What subdirectories from / should be included in the backup ?

    ls -l / gives:

    /bin
    /boot
    /etc
    /initrd.img
    /initrd.img.old
    /lib
    /opt
    /root
    /sbin
    /selinux
    /srv
    /usr
    /var
    /vmlinuz
    /vmlinuz.old

  6. #6
    Just Joined!
    Join Date
    Mar 2010
    Posts
    79
    I exclude what i posted in my last post, so all the rest gets "included"
    For me that works, and it works good.

    I think my Backup is less than 5GB (and way less), so it ain't much of a problem anyway.

    I did never use rsnapshot though.

  7. #7
    Just Joined!
    Join Date
    Jul 2007
    Posts
    38
    That sounds OK to include all except the 'exclude' stuff

Posting Permissions

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