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've made a backup.tgz file of all my work, which is now in the root directory. Can someone tell me the best way to copy it to an external hard drive? I'm guessing move it to the desktop, mount the external drive then just copy across... but the exact code would be useful.

(NB. I made the backup.tgz following a procedure from a couple of years ago, but don't have tech support any more. I'm working in an older version of Ubuntu, running Koha, wanting to upgrade to a newer version and backing everything up first, just in case.)

share|improve this question
You got two options: Do it manually: copy/paste or by using command-line and sudo mv [move] or sudo cp [copy] command with root/su privileges. – v2r Apr 25 '14 at 12:00
@v2r no reason to use sudo unless the target is owned by root. – terdon Apr 25 '14 at 22:20

Keep backup.tgz on dir you wish. Then use terminal to copy the file.

cp -b PathToTgz PathToExternalDrive

I would use something like:

cp -b /backup.tgz /media/UserName/HardDriveLabel

to keep it on external HDD root dir.

share|improve this answer

Your Answer


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.