Which directories to back – and which not?
One great thing about having an open and Linux-based phone is that I can treat it like all my other Linux based machines when it comes to backups. In my case, my home server does nightly incremental backups using rsync
over SSH.
For this I need to specify which directories it should backup and which not.
Currently, I am excluding:
/var/systemlog
/var/log
/var/cache
/run
/tmp
/dev
/sys
/proc
/home/nemo/android_storage
/opt/alien
/data/media/osmand/*obf
The first few are standard. I’m not completely sure about android_storage
and alien
, but I am under the impression that these directories only contain files present elsewhere as well.
Could this list be improved? Am I excluding too much? Is anything missing?
/home/nemo/android_storage is the folder where all the Android apps store their data. If you have Android apps it could make sense to backup this folder, but it might be difficult to restore it properly.
wanderer ( 2015-03-09 14:56:50 +0200 )editThe way you are doing it is at the root of it (alien) that is fine as long as you do not write it while fusermounted - as it does not matter much I exclude /data/media but include $home/android_storage
chemist ( 2015-03-09 15:00:16 +0200 )edit@wanderer: It seems that
nomeata ( 2015-03-09 15:27:53 +0200 )edit/home/nemo/android_storage
is also in/data/media
, so I exclude the one in/home
.@nomeata
chemist ( 2015-03-09 16:47:55 +0200 )edit/home/nemo/android_storage
is/data/media
or/opt/alien/data/media
respectively, fusermountI'm just periodically rsyncing /home/nemo each night... and that's about it.
IMHO there is not really need for backing up anything else. For all the tweaks that I use, for example I keep both the originals and pathches under my home, likewise for all my RPM's.
juiceme ( 2015-03-09 22:58:52 +0200 )edit