Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-10-2004, 09:32 PM   #1
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Using tar for backup.


I have created a cronjob which is going to run at 1:30am each Saturday. I have done this with...

crontab -e
30 1 * * 0 /runfile

I am backing up around about 60GB of data, only a seperate HDD in th eserver. I want all of the files to preserve their file ownership, permissions, and full directory paths.

Basically so, If I have a disaster and the RAID pack dies and the data gets lost, I can untar the latest backup file and everything will be as it was.

Can anyone please help me out with the tar command. I want to nail it first time as it is a production server.

Thanks alot.

Best Regards,
Old 08-10-2004, 10:11 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53

tar -czf tarfile.tar.gz directory
if you want to backup everything
tar -czf totalBackup.tar.gz /
if your server handles tar.bz2 better
tar -cjf backup.tar-bz2 /
Old 08-10-2004, 11:46 PM   #3
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Cool thanks alot foo!!!!

I'll give that a go.

Thanks again.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
incremental backup using tar eaglegst Linux - Software 9 02-01-2009 05:00 PM
Schedule a Backup with Tar globochem Linux - Newbie 2 02-28-2005 12:49 PM
Tar backup TheRealDeal Linux - General 7 02-08-2005 03:25 PM
tar as backup imsajjadali Red Hat 4 02-07-2004 03:46 PM
tar: How do I backup everything !! grantm Linux - Newbie 3 07-30-2003 02:41 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:57 AM.

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