Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
    
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
add comment

1 Answer

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
1  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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