Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please (weekly find-tar script for backup archive)
- From: Ohmster <notareal@xxxxxxxxxxxxxxxx>
- Date: Thu, 08 Jun 2006 00:57:28 GMT
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
.
- References:
- Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- From: noi
- Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- From: Ohmster
- Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- From: noi
- Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- From: Ohmster
- Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- From: noi
- Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- Prev by Date: Forum
- Next by Date: Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- Previous by thread: Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- Next by thread: Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- Index(es):
Relevant Pages
|