Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wanted to backup /var/cache/apt/archives using 'Deja Dup' but it keeps saying >>

Could not backup the following files. Please make sure you are able to open them.

/var/cache/apt/archives/lock

Any help?

share|improve this question
    
Were you running any other applications that require root privileges simultaneously? Like Synaptic or something from the command line maybe? – harisibrahimkv May 3 '12 at 9:59
    
Nope. I've even restarted for confirmation. – Mohd Arafat Hossain May 3 '12 at 10:10
    
You ran Deja Dup with sudo? – harisibrahimkv May 3 '12 at 10:11
    
No. Thats my question, I don't know how to open Deja Dup with sudo OR as root xD Sorry for being a noob ;) – Mohd Arafat Hossain May 3 '12 at 10:18
1  
I tried 'sudo deja-dup --backup' by seeing 'sudo deja-dup -h' but it keeps opening 'Ubuntu One', I wanted to use Deja Dup for my backup :( For your recommendation 'sudo deja-dup <path>' how do I find out what the path is? – Mohd Arafat Hossain May 3 '12 at 10:30
up vote 20 down vote accepted
  1. Configure Deja Dup for your root backup: gksu deja-dup-preferences.

  2. Run backup then with: gksu "deja-dup --backup".

At least this worked for me. (You have to configure Deja Dup for root, too, at first - next to your configuration for the "normal" user.)

As mythsmith says: "You can do that just for system folders, and still keep your home folder configured in your user account."

share|improve this answer
1  
Did any one tell you how awsome you are ;) Thanks for the help IT WORKED!!!! – Mohd Arafat Hossain May 3 '12 at 12:06

In 12.04 the following simple command works, if you have sudo privileges:

sudo deja-dup-preferences
share|improve this answer

Start by:

  1. Run DEJA backup GUI and configure what you want to backup and where to save your backup files, without clicking backup now, just save your backup setting and exit Deja GUI.
  2. Start terminal ALT+CTRL+T and type this command when you are ready to start backup sudo deja-dup --backup.

GUI window will open and backup should start.

share|improve this answer
    
It does start, but now it can't find my usb plugged in backup drive. – Eliptical view Jul 22 at 21:45

I think you have a few configurations to do with deja-dup first and then run it. Please do try referring to this : http://techie-buzz.com/foss/deja-dup-ubuntu-1.html

share|improve this answer
2  
I've seen this page before posting the question here.....it only says how to backup regular files (like home, images, videos etc etc) but when you apply the same method in this case (backing up files from File System) which requires user privileges then I get this error. – Mohd Arafat Hossain May 3 '12 at 10:43
    
The page you refer to is now very old: 2011 – Eliptical view Jul 22 at 21:44

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.