5

There was this other question asking what directories can be excluded, based on their necessity.

However, I think what I am asking is different enough to merit a separate question.

I use the Spideroak backup service, and they have some kind of system that keeps historical copies of saved files.

My intention was to simply backup my whole home directory, which is somewhere around 70GB in size.

However, it seems some directories contain cache files or other things that are updated or replaced frequently. Because Spideroak is saving every copy with every change, the space I am using on my Spideroak account is rapidly increasing and in danger of maxing out.

One solution is to white list only the directories I am sure I want to keep. However some directories are not so clear. My .mozilla directory, which contains my Firefox settings... I want to back up my bookmarks, but not things like the cache, and with all the sub-directories it's hard to know where to draw the line.

So, which directories should I definitely avoid, as they are just frequently updated cache and system files which will unnecessarily bloat my backup?

Questioner
  • 6,959

3 Answers3

3

You'll definitely want to exclude the following:

  • /proc
  • /lost+found
  • /sys
  • /mnt
  • /media
  • /dev

and everything they contain

Rory Alsop
  • 2,779
1

An extension like this that exports your bookmarks regularly solves the "what mozilla files to backup" problem.

If you use git (or any other versioning system) you might want to exclude all .git folders if the repository isn't something you need. I use git as a backup system rather than developer tool for some directories, so the repository isn't crucial if I have another backup of the most recent file(s).

djeikyb
  • 32,005
1

User related cache files should be in ~/.cache directory but some software like Firefox don't use that directory like Firefox which use /home/nyamiou/.mozilla/firefox/{profile}/Cache, so you may have to check for all of your software if they do not put cache files somewhere else. Also there is files like .xsession-errors that you don't want to save because they will change very often and you don't really want to save this (it's an error log).

I'm sorry, I can't provide you a list but you probably should watch the problem the other way around and see what you really want to save instead of what you can exclude.