Results 1 to 9 of 9

Thread: Backup Folder

  1. #1
    Join Date
    Oct 2011
    Beans
    25

    Post Backup Folder

    I have Ubuntu 11.10 running and i would like to know what folders i should backup so that is i had a crash or i deleted the OS i could do a system restore and my system would be just as i left it.
    I am trying to keep my backup small I currently have a 10Gb backup folder which is basically everything but my home folder. That just seems to big or is that just me.
    Attached Images Attached Images

  2. #2
    Join Date
    Nov 2011
    Location
    bod
    Beans
    78

    Re: Backup Folder

    I suggest that you get an external drive (USB or eSATA) and have enough space to backup all you want or need. It is very convenient to restore a system if you backup it regularly. One simple way (but time-consuming) is to make complete images with a cloning tool, for example Clonezilla. This also works for dual boot systems with Windows and Ubuntu.

    You can also make a script using rsync for backup or use some more or less advanced system. This works for Ubuntu.

    Because actually, your personal data (at /home) is more valuable than the system and its settings. So if you want that, you should definitely also backup /home.
    Last edited by pixiq; February 10th, 2012 at 08:54 AM. Reason: typing error

  3. #3
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    7,981

    Re: Backup Folder

    Howdy,

    This is a common concern for new Linnux users. I have been there myself 15 years ago. However, after a few years of using Linux, one realizes that backing up the whole system is a total waste of time. Just backup your data.

    The reason is that Linux is extremely stable and simply doesn't screw up the way you fear it would. Secondly, when your hard disk fails one day, you would want to install the latest version of Linux and would not want to restore an old decrepit version of yesteryear.

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Backup Folder

    I prefer to use rsync and have everything I need to do a clean install.

    discussion of alternatives/strategy:
    https://help.ubuntu.com/community/BackupYourSystem

    I modified this:
    Originally Posted by MountainX View Post #20 also other backup apps
    http://ubuntuforums.org/showthread.p...ghlight=backup
    Sample rsync file, use a text editor and paste into a file & name it mybackup.sh

    https://help.ubuntu.com/community/rsync
    Oldfred's list of stuff to backup May 2011:
    http://ubuntuforums.org/showthread.php?t=1748541
    backup the following:

    1. /home (Users' personal files and settings)
    2. /etc (System-wide configuration settings)
    3. /var/spool/cron/crontabs (Commands which run automatically)
    4. The script to generate the backup
    5. list of installed applications

    I include these also:
    cp /etc/apt/sources.list ~/sources.list.backup
    apt-key exportall > ~/repositories.key
    Various hardware listings/configurations
    dpkg --get-selections > ubuntu-files
    bash ~/Documents/LinuxDocs/CurrentSys/boot_info_script.sh
    lshw -html > ~/hardware_info.html
    udevadm info --export-db > file.txt
    dmidecode > bios.txt

    Other applications if data not separate
    apache, any sqldb, tomcat
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #5
    Join Date
    Oct 2011
    Beans
    25

    Re: Backup Folder

    Thanks for the Reply all of you. I already back up my personal data from the home folder but i guess what i am looking for is from my drive folder which folders can i exclude using UBUNTU Backup tool. Again so i can make my backup file smaller.
    My Drive folder has the following:
    /bin
    /boot
    /cdrom
    /dev
    /etc
    /home
    /lib
    /lib64
    /lost+found
    /media
    /mnt
    /opt
    /proc
    /root
    /run
    /sbin
    /selinux
    /srv
    /sys
    /tmp
    /usr
    /var
    Out of these which can i exclude from a backup, so i am not backing up system files that will be re-installed when i re-install UBUNTU 11.10 if a crash happened. I just want the files i added or changed. Space is not necessarily a problem I a TB external but i just want to do it right and learn a little in the process.

  6. #6
    Join Date
    Dec 2004
    Location
    Atlanta, GA USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Backup Folder

    All you really need is your /home folder. All the rest are system files which will be reinstalled, if the need arises.

  7. #7
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    7,513
    Distro
    Ubuntu Development Release

    Re: Backup Folder

    A lot of your personal configuration settings are in files in the home folder.

    I am testing 12.04 and I recently had to re-install. I did not mark the partition to be formatted and the OS installed but none of the folders and files in the home folder were overwritten. When I rebooted all my settings, such as themes and background images, were in place as were my web browser bookmarks and all that stuff.

    This is why we are saying it is the stuff in the home folder that matters. We do a system restore by re-installing.

    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  8. #8
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Backup Folder

    I just backup /home and keep manual track of any system file in /etc that I manually edit. I also export the list of installed apps.

    More detail here:
    More detail on /etc files to backup - post #3:
    http://ubuntuforums.org/showthread.php?t=1500559

    Files to include or exclude from full system backup.
    http://ubuntuforums.org/showthread.php?t=1903085

    Some files to exclude from /home:
    http://ubuntuforums.org/showthread.php?t=1883834
    /home/*/.cache
    /home/*/.dbus
    /home/*/.dropbox
    /home/*/.gvfs
    /home/*/.local/share/Trash
    /home/*/.mozilla/firefox/*.default/Cache/**
    /home/*/.qt
    /home/*/.thumbnails
    /home/*/Examples
    /home/.ecryptfs
    /home/lost+found
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  9. #9
    Join Date
    Sep 2009
    Beans
    67
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Backup Folder

    I like to use tar to make a simple backup of the root (/) directory. Because everything in linux is a file, it just creates a tar file of your entire system.

    This is a great tutorial that recently helped me.

    https://help.ubuntu.com/community/BackupYourSystem/TAR

Tags for this Thread

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
  •