LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-16-2009, 03:55 AM   #1
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Rep: Reputation: Disabled
Angry cannot get a backup to work


will someone PLEASE explain to me how to back up my /home/joe directory in case I blow it all up playing around with settings...this should be simple...I have tried 3 different programs and I still cannot do a basic back up.

All I want to do is backup the system to another hard drive. /dev/sdb is 37 Gb with 3 Gb used...I want to back that 3 Gb to /dev/sdc which is 10 GB and empty.

How hard can that be? At this point I am ready to forego the GUI and just use the console. I just need the commands to back up a directory to a different drive and to later restore it.

Took me a long time to get enough information to set up a dialup modem, now, I can't set up a simple backup. I don't understand why these basic utilities are not built into Ubuntu 8.1...I mean , it has everything else I could possibly need, but no backup??

It seems in Ubuntu the hard things are easy and the easy things are hard.

help would be appreciated. Thank you in advance.
 
Old 04-16-2009, 03:59 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
How about something really simple like
Code:
tar --selinux -cjf /mountpointof/dev/sdb1/backup.tar.bz2 /home/joe
Note that I've assumed that the relevant partition on sdb is sdb1 and that you've mounted it somewhere.

Edit

To restore a file, simply use
Code:
tar --selinux -C ./ -x home/joe/restorefile -f /mountpointof/dev/sdb1/backup.tar.bz2
where restorefile is the file you want to restore

Last edited by billymayday; 04-16-2009 at 04:03 AM.
 
Old 04-16-2009, 02:42 PM   #3
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
thanks billy

Ok, I will try that, but, if it's not too much trouble, could you please explain what all the terms mean so that I may learn something here...you know...give a man a fish and he can eat for a day....teach him how to catch a fish a he can eat for a lifetime.

Thanks again.
 
Old 04-16-2009, 03:41 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Better still "man tar"

--selinux - save security context information
-c - create tar file
-j - compress with bzip2
-f - filename following
-C - change directory to following before executing
-x - extract.
 
Old 04-17-2009, 12:04 AM   #5
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
tar good answer for now

I went to the library today and got a linux book....seems that until I can find a good GUI backup program tar is a good answer and what I'll be using for now...thanks again!
 
  


Reply



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
how to create backup MYSQL Script to backup my database for every 1hour RMLinux Linux - Newbie 3 11-20-2008 10:13 AM
LXer: Automatic backup for sporadically connected clients with Box Backup LXer Syndicated Linux News 0 08-29-2008 08:40 PM
Backup system ala rdiff-backup, but without mirror and with dst encryption dr_dex Linux - Software 0 08-04-2008 03:39 AM
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
.emacs make-backup-files nil doesn't work eliotstock Linux - Software 0 05-02-2003 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:11 PM.

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
Open Source Consulting | Domain Registration