2

I was thinking whether it is a good idea to backup of all directories starting with dot in my home folder, so that all settings can be restored if anything goes wrong. I just had an instance when I had to clear the home folder as Ubuntu was not logging in. As my home folder is huge, I don't want to backup the entire thing.

  1. How can I backup just the .folders.
  2. Will there be any permission issue when I restore.

Is this a good backup option.

4 Answers4

2

Usually, I do backup to external HDD just several .folders simply by copying them in Krusader (I like this manager, because it recalls me old-time Norton Commander :) ). I personally copy the following folders:

  1. .mozilla (there are Firefox settings and other Mozilla stuff)
  2. .thunderbird (copy of offline backup of my emails)
  3. .skype (it's so easy to restore Skype setting and especially History by restoring this folder back)
  4. .dropbox

Of course, you can copy other folders (like gnome-related directories). But I like to configure it 'from scratch'.

Good luck.

Vincenzo
  • 2,675
  • Just one thing regarding permissions. There should be no questions if you preserve your user name intact. – Vincenzo May 08 '11 at 21:28
  • @Vincenzo and even then, a sudo chown -R username ./* will do the trick – crasic May 09 '11 at 00:34
  • @crasic Agreed :) I just looking from my 'personal computing point of view' :) – Vincenzo May 09 '11 at 07:25
  • @crasic Wouldn't sudo chown -R username:username ./* be preferable by making sure the group also gets reassigned? – Firefeather May 11 '11 at 01:08
  • @Firefeather for some reason I was under the impression that Chown did that by default when no group was specified. Yours is correct – crasic May 11 '11 at 08:05
  • 1
    @Firefeather & carsic Thank guys for comments and suggestions. I will use them in my Linux-life :) – Vincenzo May 11 '11 at 16:01
1

It's not too trivial, becuase if you try to specify hidden files as .*, you automatically include involuntary . and .. - the current and above directory.

tar -cjf configs.tar.bz2 $(find ./ -mindepth 1 -type d -name ".*")

I started the command from a testdir with ./ for find, because the browser-cache, which is quiete big, would take some minutes to be stored on my system.

user unknown
  • 6,507
1

My trick for "just the dot files" is to use a path of .??* that is, dot followed by at least two characters. This avoids implicitly including the parent directory.

0

You can backup skype history to the cloud storages via skyhistory tool