Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-21-2000, 04:54 AM   #1
LQ Newbie
Registered: Nov 2000
Location: Belfast, N.Ireland
Posts: 2

Rep: Reputation: 0


I'm administrating our Linux server and I need to do daily backups. I know how to use tar, but I'm not sure what exactly I should backup and can't seem to find help anywhere. Is there a particular directory/directories which I should back up? Are there any tips which would be helpful to me??

Thanks in advance!
Old 11-21-2000, 11:36 AM   #2
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,441

Rep: Reputation: 3994Reputation: 3994Reputation: 3994Reputation: 3994Reputation: 3994Reputation: 3994Reputation: 3994Reputation: 3994Reputation: 3994Reputation: 3994Reputation: 3994
You should really backup everything, at least occasionally. Then do incremental daily backups. I would use dump to do this. What kind of drive are you backing up to?
Old 11-22-2000, 03:03 AM   #3
LQ Newbie
Registered: Nov 2000
Location: Belfast, N.Ireland
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your reply!

I was thinking of backing up everything about every 2 weeks, and backing up incrementally every week night in between. Should I backup everything from / down??

Currently the backups are just going to be stored on another linux machine we have, but we're planning to get a dat drive in the near future - when I'm sure I'll be back asking questions again!
Old 12-05-2005, 03:26 AM   #4
LQ Newbie
Registered: Aug 2005
Location: Zimbabwe
Posts: 11

Rep: Reputation: 0
Linux daily backup

Its better to backup everything on your server.Setup a script to perform backup every night.I prefer to use cpio
than tar command.e.g

find / -depth -print | cpio -ov >/dev/sto

where st0 is the magnetic tape


Old 12-05-2005, 03:43 AM   #5
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
I'm also interested in doing backups. I would like to know what to do with /proc and /dev. Do I have to backup those directories? If I do. What do I do when restoring? Wouldn't it mess up the system? (at least /proc). Are there others "special" directories like those?

Thank you a lot!
Old 12-05-2005, 07:41 AM   #6
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
What are the services your are providing through your linux box which you want to backed up ?

After these inputs i think i'll be in more commendable form to tell you what to & how to backup.

Even though RSYNC for me is the best.

Old 12-05-2005, 09:26 AM   #7
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
I'm a desktop user that likes to do a lot of experiments with his laptop. I've been playing with mysql, for instance, I've written some scripts to automate stuff in my PC, and also I'm writting my PhD thesis...

I'm not a server admin... yet.

Last edited by enemorales; 12-05-2005 at 09:42 AM.
Old 12-05-2005, 11:14 AM   #8
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,352
Blog Entries: 4

Rep: Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334
I'd take a look at existing Linux file-backup systems like good ol' tried-and-true Amanda. (It's free...)

Note that you don't have to use tapes for backups. I use removable USB-2.0 hard drives. They fit in your shirt-pocket, and in a safe-deposit box.

The biggest and most important attribute of a backup, though, is simply the fact that it exists, it is current, and you actually know how to restore from it. You can set up a simple copy-job using rsync that executes every night and puts the changed files "somewhere else," on some other drive, and just by having that extra copy you're immediately better off than you were.

Backups: Just Do It!

You can home-grow a lot of things. For instance, a cron scheduled job, maybe running as a privileged user, which puts the backups into an out-of-the-way directory that is read-only to the user whose files are being backed up. But remember that you are definitely going into a territory that "has been done before, and done well." Look around for things, like Amanda, that have already been done.

Last edited by sundialsvcs; 12-05-2005 at 11:15 AM.
Old 12-17-2005, 07:21 AM   #9
Registered: Jan 2004
Location: Kansas
Distribution: Windows 7, iMAC Lion 8.5, Ubuntu
Posts: 92

Rep: Reputation: 15
Backup Problem

I'm a desktop user and would like to backup my files occasionally. Currently, I am simply copying 'My Documents' to 700 MB CD's.

I'm using Fedora Core 4 and attempting to do the backup via instructions contained in the FC3 Bible. I used the following instruction to invoke the 'mkisofs' file as instructed (minus the quote marks) as follows:

'mkisofs -R -o /var/tmp/bob.iso /home/Bob'

A 'bob.iso' file was created as requested in the /var/tmp folder. I then entered the following (with multiple attempts at adding/removing 'ignsize, dev=/dev/cdrom1, etc. Results are as follows:

'[root@localhost ~]# cdrecord -v -ignsize dev=/dev/cdrom1 -data /var/tmp/bob.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to
Note: The author of cdrecord should not be bothered with problems in this version.
TOC Type: 1 = CD-ROM
scsidev: '/dev/cdrom1'
devname: '/dev/cdrom1'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'LITE-ON '
Identifikation : 'LTR-48246S '
Revision : 'SS04'
Device seems to be: Generic mmc CD-RW.
Current: 0x0009
Profile: 0x000A
Profile: 0x0009 (current)
Profile: 0x0008
Profile: 0x0002 (current)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1422080 = 1388 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 3716 MB
Total size: 4268 MB (422:54.04) = 1903053 sectors
Lout start: 4268 MB (422:56/03) = 1903053 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 6
Is not unrestricted
Is not erasable
Disk sub type: Medium Type C, low Beta category (C-) (6)
ATIP start of lead in: -11231 (97:32/19)
ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 27
Manufacturer: Prodisc Technology Inc.
Blocks total: 359846 Blocks current: 359846 Blocks remaining: -1543207
cdrecord: WARNING: Data may not fit on current disk.
cdrecord: Notice: Overburning active. Trying to write more than the official disk capacity.
Forcespeed is OFF.
Speed set to 8448 KB/s
Starting to write CD/DVD at speed 48.0 in real TAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is ON.
Turning BURN-Free off
Performing OPC...
Starting new track at sector: 0
Track 01: 702 of 3716 MB written (fifo 100%) [buf 98%] 32.5x.cdrecord: Success. write_g1: scsi sendcmd: no error
CDB: 2A 00 00 05 7D 89 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 63 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x63 Qual 0x00 (end of user area encountered on this track) Fru 0x0
Sense flags: Blk 0 (not valid)
resid: 63488
cmd finished after 9.307s timeout 40s

write track data: error after 736905216 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
Writing time: 175.331s
Average write speed 151.3x.
Min drive buffer fill was 50%
Fixating time: 19.415s
cdrecord: fifo had 11671 puts and 11608 gets.
cdrecord: fifo was 0 times empty and 5922 times full, min fill was 81%.
[root@localhost ~]#

Sorry for the long copy. Evidently when I include -ignsize , the error probably is the 700 MB disc size; however, when I do not include it in the command line, I get other errors that it doesn't recognize the 'dev'. Can anyone that understands backup tell me where I am going wrong? I've tried various command line changes but still get other error messages.



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 /etc. Gag Halfrunt Linux - Newbie 1 12-05-2004 03:40 AM
backing up koyi Linux From Scratch 2 10-09-2004 10:54 AM
backing-up? jamaso Slackware 5 06-16-2004 08:03 AM
backing up coheed Linux - Software 4 01-25-2004 09:01 PM
Backing up osx Linux - General 5 03-24-2003 02:09 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 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