Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please



On Wed, 07 Jun 2006 06:57:12 +0000, Ohmster wrote this:

noi <noi@xxxxxxxx> wrote in
news:SZkhg.18355$VE1.4632@xxxxxxxxxxxxxxxxxxxxxxxxxx:

Hello noi,

I have 2 machines, single user. Weekly, I run a find-tar script that
makes a tar.gz of all the .cnf, .conf, .rc, fstab, hosts, .old and
other files I can remember onto ~/archive/ . It also backs up
.thunderbird

Oh, could I see your scripts, please?

<snip>

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.


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

#!/bin/bash
#
# $Header: $
# $Log: $
# Revision 1.16 2006/01/09 18:54:20 noi

# ~/programs/archiveconf.sh add sed /\x00/d to remove low value lines

#
#

declare d4=$(date +%m\/%d\/%Y)
declare d1=$(date +%Y%m%d)
declare HD=/home/noi

echo -e "Starting conf archive process on $d4 \n" > /tmp/archivestatus.txt

cd $HD/archives
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

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

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

echo -e "\n find and tar thunderbird \n"

find $HD/.thunderbird -type f | sed -e '/Blogs/d' > /tmp/tar_mail.txt

find $HD/.pan -type f -iname "*.xml" -iname "*.txt" >> /tmp/tar_mail.txt

tar -zcvf $HD/archives/archiveTbird$d1.tgz -T /tmp/tar_mail.txt


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

echo -e " \n Configuration files archived \n\n " >>
/tmp/archivestatus.txt

tar -Ptzf $HD/archives/archiveconf.$d1.tgz > /tmp/tar_list_files.txt
cat /tmp/tar_list_files.txt >> /tmp/archivestatus.txt

echo -e " \n\n Thunderbird files archived \n\n " >> /tmp/archivestatus.txt

tar -Ptzf $HD/archives/archiveTbird$d1.tgz >> /tmp/archivestatus.txt

echo -e "\nArchiveconf Finished " >> /tmp/archivestatus.txt

echo -e "\n Sending email \nConsolidating history " >>
/tmp/archivestatus.txt

mail -s "Files archived on $d4 " noi@localhost < /tmp/archivestatus.txt

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

### consolidate and archive bash history cat

$HD/archives/bash-history*.txt $HD/.bash_history >> /tmp/bash-history.txt

\ && mv $HD/archives/bash-history-*.txt $HD/.Trash/

\ && sed -f$HD/programs/sedscript.ans /tmp/bash-history.txt > /tmp/bash-history2.txt

\ && sort -dubi /tmp/bash-history2.txt > $HD/archives/bash-history-$d1.txt

chown noi:noi /tmp/*.txt /tmp/*.html $HD/archives/*.txt
$HD/archives/*.tgz

cd $HD
echo -e "Finished"

.



Relevant Pages

  • Re: [tin] Setting it up - Headers
    ... particular newsreader - leading to subsequent preference for 'doing it ... What I liked best about Pine is that there was no learning curve at all. ... The commands were all single-stroke case-insensitive letters, ... If I've inadvertently hit the capslock key, Thunderbird ...
    (news.software.readers)
  • Re: [opensuse] Thunderbird on OpenSuse 11.1
    ... Something weird has happened with Thunderbird on my 11.1 x86-64 box, ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ... Editing the extensions.rdf file only removes it from the extension ... can't make changes in the "Account Settings" window and then save ...
    (SuSE)
  • Re: [opensuse] Thunderbird on OpenSuse 11.1
    ... Something weird has happened with Thunderbird on my 11.1 x86-64 box, ... nothing happens when I hit the OK button to save the settings. ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ... Editing the extensions.rdf file only removes it from the extension ...
    (SuSE)
  • Re: [opensuse] Thunderbird on OpenSuse 11.1
    ... Something weird has happened with Thunderbird on my 11.1 x86-64 box, ... nothing happens when I hit the OK button to save the settings. ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ... the install its fairly vanilla - changes include the patches that ...
    (SuSE)