Originally Posted by
zeynel2
I am able to log in through command line and I was able to print some of the important files. Would it be possible to back up from the command line? How can I do that?
Insert your USB stick or external hard drive.
Use the ls (list) command to find your stick. You might need to look around a bit in the /media directory.
For example, here is how I found my USB stick using the ls command:
Code:
$ ls /media
cdrom cdrom0 ian # Well, I know it's not a cdrom
$ ls /media/ian/
SHARED_128 # There it is!
$ ls /media/ian/SHARED_128/
00063.jpg # Look! It's the list of all my stuff on the USB stick!
zoo_stuff.jpg
Use the command cp (copy) to backup your stuff to the external USB stick or drive.
You can copy one file at a time, or entire directories (if your external drive is big enough)
The format is simple: cp FROM TO, like a sentence.
For example, if I want to copy the file /home/ian/pudding_recipe onto the external disk, I would use
Code:
cp /home/ian/pudding_recipe /media/ian/SHARED_128/
If I wanted to copy my entire /home/ian directory with all my personal files (and my disk is big enough)
Code:
cp -r /home/ian /media/ian/SHARED_128/
Bookmarks