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'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 at 12:00
    
@v2r no reason to use sudo unless the target is owned by root. –  terdon Apr 25 at 22:20

1 Answer 1

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

 
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.