Hi,
Can someone please tell me how to do the back up into an external hard-drive.
Please give the commands as i am a newbie.
Please also tell me how to delete the backup.tgz on my root folder, which was incompletely done, but has occupied the entire space.
Regards,
sandeep.
Last edited by msandeep273; July 25th, 2012 at 06:42 AM. Reason: found the answer. have another question
To remove the unfinished backup, the command you're looking for is rm. It's a really simple command, but if you have questions about it, check its manual entry:
Of course, since the file in question is in the root directory, you'll need superuser privileges to remove it.Code:man rm
Please notice that I gave the absolute path to the file in the command. Alternatively, I could have navigated to the root folder (cd /) and then simply used the file name.Code:sudo rm /tar.gz
Giving the command verbatim would require too many assumptions, but there should only be two differences from backing up to a file within your system.
1. When giving the file name for your backup (the -f option of tar), you have to include the path to your external drive. It could be mounted any number of places, but my best guess is the /media directory. To check, as well as to see what it's named, use the list command:
Mine is within /media, and it is named "Expansion Drive", so in my case, the file portion of the command would be:Code:ls /media
(Because of the space in Expansion Drive, I had to use a backslash.)Code:-f /media/Expansion\ Drive
2. You probably don't want to back up your external drive, so make sure you exclude it from the backup. (See the manual entry for tar on details of the exclude options.)
This thread is closed.
The information is now held on the community wiki at
https://help.ubuntu.com/community/BackupYourSystem
https://help.ubuntu.com/community/BackupYourSystem/TAR
https://help.ubuntu.com/community/Ca...BackupRecovery
Thank you for your thread and the work you have done in keeping it current and of use to the community.
Support threads regarding the wiki and it's content should be created in a suitable forum.
Bookmarks