Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

This question already has an answer here:

when I reinstall I prefer to have a new system; however there are some configuration files in ~/ might like to keep. Can I back up a single file with deja dup? (note these files may need to stay in ~/ to work)

share|improve this question

marked as duplicate by Rinzwind, karel, Radu Rădeanu, Eric Carvalho, belacqua May 10 '14 at 19:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I can't hold but to say (gzip file-to-backup.extension && sudo chmod 000 file-to-backup.extension.gz && mv file-to-backup.extension.gz) & (if you like using the terminal). – JMCF125 Oct 28 '13 at 20:25

1 Answer 1

up vote 1 down vote accepted

You could (perhaps, let me know if it works) create a new directory called ~/.files-to-be-backed-up/ and then symlink your individual files into that directory:

mkdir ~/.files-to-be-backed-up/
ln -s ~/Desktop/file ~/.files-to-be-backed-up/file

And then just set Deja-Dup to backup anything in that hidden directory.

share|improve this answer
That won't work, as Deja Dup will back up the symlinks themselves. You'd need to use hardlinks (i.e. use the same commands you gave, but without the -s). – Michael Terry Oct 16 '11 at 6:36
cool, it seems to have worked; thanks :) – 1872321 Oct 16 '11 at 20:01
@MichaelTerry Are you sure symlinks don't work? I would swear I've had them working in the past. – Oli Oct 16 '11 at 20:04
If you specify a symlink as an explicit folder to back up or ignore, they will be followed and it will work as you expect. But if there are symlinks somewhere inside folders you mention, they will not be followed. – Michael Terry Oct 17 '11 at 14:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.