LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2011, 12:38 PM   #1
ubuntunewby
LQ Newbie
 
Registered: Jun 2011
Posts: 10

Rep: Reputation: Disabled
Question Backing Up


Hello everyone,

Just a quick question, how would I backup files to my home directory.Plus, after backing up, restore to a different directory?

I know how to create a new directory, but I want to back up a certain file to my home directory. My screen name speaks for itself when it comes to my question.

Any help or references would be great!
 
Old 07-01-2011, 01:08 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Hi,

Easy and simple:

- use cp

Quote:
cp /home/yourfolder/afile.ext /mnt/usb/afile.ext
this will create a copy in the folder /mnt/usb, however, as this is the mount folder TO the usb stick, the file will in effect be created on the stick. Provided the USB drive is inserted/mounted, but you know this...

- use the file manager

just enter the stick, see it apear and open TWO file managers. Drag and drop from the one to the other. One "points" to the usb stick, the other to the folders containing the files to be backed up

- use rsync

a very flexible little tool that has to be part of anyone's tool chest, check out the manual...

Placing files back is just as easy: just put the file back from the back up to the required spot. In fact, it's not even a silly idea to have a regular "snapshot" of your whole home folder to an external harddrive...

Everything you do and register ends up in your home folder (wow, sounds like that "warning" in Tron, where a program gets its disk - only the deleting is not there, dont worry) - so it's a sane move to back up the whole thing

Luck

Thor

Last edited by ButterflyMelissa; 07-02-2011 at 03:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backing up a LV mia_tech Linux - General 2 10-13-2009 12:52 AM
Backing up my OS dougnc Linux - Software 4 07-02-2007 11:17 AM
Backing up ChristineCrawford Linux - Newbie 8 12-17-2005 08:21 AM
backing up koyi Linux From Scratch 2 10-09-2004 11:54 AM
backing up coheed Linux - Software 4 01-25-2004 10:01 PM


All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration