Results 1 to 10 of 10

Thread: Question about the necessity of backup /snap folder

  1. #1
    Join Date
    Jun 2014
    Beans
    Hidden!

    Question about the necessity of backup /snap folder

    Hello,

    Every day I make a backup (rsync) of all / folders except:


    • cdrom
    • dev
    • media
    • mnt
    • proc
    • run
    • sys
    • tmp


    I'ts because I think these excluded folders are repopulated with every boot or are just mount points.

    So my question is; do I need to backup the new /snap folder or it's just another mount point "in disguise"?.

    Thanks and best regards.
    Last edited by fprietog; July 22nd, 2016 at 08:04 PM.

  2. #2
    Join Date
    Jul 2009
    Beans
    399

    Re: Question about the necessity of backup /snap folder

    Hello
    Here is some information on backups.
    https://help.ubuntu.com/community/BackupYourSystem
    For taking complete system dump you can use clonezilla.

    Daily backups can be limited only to the files that get chnged. Usually backing up /home should backup all changed files. You can take a full backup of hone once every week. Rest of the days you can take inctemental backup. Similarly Clonezilla backup can be taken once a week.

    https://www.google.co.in/url?sa=t&so...q1lAj0J1yRjWAg

  3. #3
    Join Date
    Jun 2014
    Beans
    Hidden!

    Re: Question about the necessity of backup /snap folder

    Hi deepakdeshp,


    Thanks for the info. I'm currently using incremental rsync for the backups because I use a rsync backup server as target, so I just synchronize folder contents changes.



    Thanks and best regards.

  4. #4
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Question about the necessity of backup /snap folder

    Quote Originally Posted by fprietog View Post
    I'ts because I think these excluded folders are repopulated with every boot or are just mount points.

    So my question is; do I need to backup the new /snap folder or it's just another mount point "in disguise"?.

    Thanks and best regards.
    The /snap folder only exists once you boot up, is read only & is just reflective of any installed snaps being mounted (loop devices) at boot. So don't see any reason to backup

  5. #5
    Join Date
    Jun 2014
    Beans
    Hidden!

    Re: Question about the necessity of backup /snap folder

    Thanks for the answer mc4man. I was not sure of how it works.

  6. #6
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Question about the necessity of backup /snap folder

    To be a bit more accurate -
    /snap will exist & /snap/<some app folder> may exist but the folders are only populated at boot for snaps that are installed once they are mounted
    If you remove a snap it's folder will be left behind in /snap (empty
    Being as snaps mount read only you could never modify, add or restore to them anyway
    screen shows one in Disks, so down the road if one had let's say 20 snaps you'd have 20 loop devices, ect.
    Attached Images Attached Images

  7. #7
    Join Date
    Jun 2014
    Beans
    Hidden!

    Re: Question about the necessity of backup /snap folder

    Thanks mc4man.

    I've just done a little test; I've deleted /snap folder (after unmounting all snaps) and reboot just created it again with snaps re-mounted.

    So no need to be backed at all.

    Thanks and best regards.

  8. #8
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Question about the necessity of backup /snap folder

    There is a snap folder in /home. That snap folder has folders for each snap application that is installed and inside those folders would be any user created files from the application including application state at the time of closing. Some are hidden files.

    For example, the Notes snap has /home/snap/notes/1/.config/Awaresomeness/Notes.ini & Settings.ini & Trash.ini. It is the Notes.ini that contains the notes created in the Notes snap application.

    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


  9. #9
    Join Date
    Jun 2007
    Beans
    17,337

    Re: snap folder in Home dir.

    What is a little curious is that if a snap is removed then it's folder in the $HOME dir. is also removed. Not sure if it makes sense or not, opposite of what currently happens when a package is removed.

  10. #10
    Join Date
    Jun 2014
    Beans
    Hidden!

    Re: snap folder in Home dir.

    Quote Originally Posted by mc4man View Post
    What is a little curious is that if a snap is removed then it's folder in the $HOME dir. is also removed. Not sure if it makes sense or not, opposite of what currently happens when a package is removed.
    ¿Curious?... Better say dangerous.

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
  •