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.

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
    
I haven't used it before, but how about "sudo deja-dup <path>"? –  harisibrahimkv May 3 '12 at 10:20
show 2 more comments

4 Answers 4

up vote 11 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
add comment

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

sudo deja-dup-preferences
share|improve this answer
add comment

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

Open your terminal and run

sudo deja-dup

Deja-dup will open with administrative priviledges

share|improve this answer
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.