Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please (weekly find-tar script for backup archive)



noi <noi@xxxxxxxx> wrote in
news:Qhvhg.40761$fb2.9675@xxxxxxxxxxxxxxxxxxxxxxxxxx:

Hello noi,

Oh dude, this is like the best new idea I have heard in a long time.
I have two DVD-RW drives in my main gaming/everything else computer
and I could put one of them in the Linux server and just put the
CD-RW in my main rig. Would not cost anything and that really might
be the way to go. What an idea! Thanks buddy.

Like I said something is always missing, usually some hidden ".*" file
or directory but most of the stuff I make compressed tar files of a
DVD size and copy to the other PC or to DVD-RW for semi-permanent
backup.

Roger that. This is an excellent job, barring a disk clone. Now I
actually have something to look at, sort of a starting place for me to
get things backed up. This is great. I am going to go through this now
and see if I have any questions, prior to archiving this wonderful
script. Thanks.

Watch out for text rewrap of some extended
commands but this works for me :

I for sure will watch for that. If I have to give someone a script or
something that may be damaged due to line wrap, I usually put it in a zip
file and post it (Very small file.), or in a text only newsgroup like
this one, I would just stick the zip file on my apache server with a URL
to the file. There is one line I would like to ask you about, coming
right up...

[...]

find /boot/ /etc/ /home/ \( -type f -a -iname ".*" \) -o -iname
"*.conf" -o -iname "*.old" -o -iname "hosts*" \
-o -iname "*fstab*" -o -iname "*.cf" -o -iname "*.cnf" -o -iname
"*,v" -o -iname "crontabl*" -o -iname "*iptables.*" \ -o -iname
"*.ans" -o -iname "*rc" -type f | sed -e 's/~//' -e '/,v/d' -e
'/.Trash/d' -e '/.cache/d' -e '/.lock/d' \
| sort -dub > /tmp/tar_conf_files.txt


This find command. Are all 7 of these line wrapped lines actually a
single line of text?


tar -zcvf archiveconf.$d1.tgz -T /tmp/tar_conf_files.txt

### find thunderbird mail files and archive these except News and
Blogs

Oh this is so freaking cool. Nicely commented too!


[...]

### Untar archive to prepare email
### Print and mail what's in the archive

[...]t

### This backups of history commands
### with a sed command file that strips repetitive simple commands
### like "ls", "cat"

### consolidate and archive bash history cat

I really like this, great for debugging and tweaking. The truth is, I
really don't know crap about sed, awk, or gawk, but they are pretty
powerful tools, from what I understand. I wish I had time to learn this
stuff, but in the real world with one guy working like a dog to pay
mortgage and everything else, I just cannot do it. Very sad. :(

[...]

cd $HD
echo -e "Finished"

Wonderful script, noi. Thank you so much for taking the time and sharing.
I appended "(weekly find-tar script for backup archive)" to the subject
in this followup for the benefit of anyone that skims the newsgroups,
looking for just such a thing or does a google to find something like
this. I hope that you don't mind. Goodnight noi.
--
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
.



Relevant Pages

  • Re: tar or zipping files to which you have no explicit access?
    ... > do NOT want to limit the access rights end users can assign to their ... After archiving the objects into to a single ... I suppose it might be possible to write a script ... I'm pretty darn *sure* NT Backup CAN backup to ...
    (microsoft.public.win2000.security)
  • Re: Archiving and Storing Email Messages
    ... There is a script called AutoArchive, ... account folders to archive folders within the "On My Computer" folder tree. ... Options for end of year archiving (The Entourage Help Blog) ...
    (microsoft.public.mac.office.entourage)
  • Re: Scripting mail deletions..
    ... > You can script ExMerge to do archiving to PST-files. ... >>I need to delete mails that are>7 days. ... >>Has anyone made a script for this purpose or you got any good ideas.. ...
    (microsoft.public.windows.server.scripting)
  • Re: Backup Software For Linux?
    ... If Linux does support a UDP format, you certainly can write a script to dump ... your archives before they get burnt to a CDR/W media. ... Here's the archiving system I would like to set ... etc files into a backup folder. ...
    (comp.os.linux.misc)
  • Help finding an old extended BASIC routine
    ... Spectrum tapes and Discovery discs, archiving what laughably passes for ... The commands themselves are of the form ... Logo-esque routines on TTFn but not the one I'm after. ...
    (comp.sys.sinclair)