
Signature
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
> Assuming that the bash structures in Ubuntu are the same as for Fedora,
> a better place to put Java-related stuff is in a "java.sh" file in
> /etc/profile.d - /etc/profile will automatically find and run it.
I can see the benefit to this but I would suspect that it would only
really benefit a multi-user system?
> Secondly, remember to make a copy of the file somewhere in a user
> directory - otherwise it will be nuked next time you do a clean install
> because that wipes and recreates the /etc filing structure.
SimpleBackup backs up /home/.... /var/www and /usr/local to an external
USB drive. I don't know how to use rsync, although I have seen several
mentions of it in the ubuntu news group (alt.os.linux.ubuntu)
Based on what you say, there are several improvements I could make to my
system, but it works fine as it is. However, I just installed CentOS on
my second HD so I might try some of your ideas with that since my FF
installation is my production distro and I'd rather not run the risk of
messing it up.

Signature
Track 9 of _Clutching At Straws_
A hand held over a candle in angst fuelled bravado
a carbon trail scores a moist fresh palm
Trapped in the indecion of another fine menu
and you sit there and ask me to tell you the story so far
http://www.songlyrics.com/song-lyrics/Marillion/Clutching_At_Straws/Slainte_Mhat
h/93706.html
Martin Gregorie - 19 Aug 2007 18:14 GMT
>> Assuming that the bash structures in Ubuntu are the same as for Fedora,
>> a better place to put Java-related stuff is in a "java.sh" file in
>> /etc/profile.d - /etc/profile will automatically find and run it.
>
> I can see the benefit to this but I would suspect that it would only
> really benefit a multi-user system?
No, its good for any system, desktop, server or whatever.
The benefit is that by doing this you don't modify /etc/profile or
/etc/bashrc, so after a reinstall that's one less file to remember to
edit your favorite customizations into. Take a look at /etc/profile.
Right at the end you can see the loop that finds and executes all files
in /etc/profile.d
Changes made to /etc/bashrc and /etc/profile are global: per-user
customizations should be put in .bashrc and .bash_profile (and possibly
.bash_logout) in the $HOME directory of the user they affect.
> SimpleBackup backs up /home/.... /var/www and /usr/local to an external
> USB drive. I don't know how to use rsync, although I have seen several
> mentions of it in the ubuntu news group (alt.os.linux.ubuntu)
Sounds like a decent solution in that case.
I didn't find that. I was using Amanda until my tape deck died. A quick
comparison of the price of DDS4 drives and USB external disks convinced
me that there had to be a better backup medium than tape. :-)
"man rsync" tells all. You might have to experiment with it a bit to get
it working exactly how you want because its options are many and various.
BTW, if you're thinking of making compressed backups, both tar and zip
are good. The problem is media related. Most USB drives are preformatted
as a single FAT-32 partition. This works out of the box BUT a FAT-32
limit is that no individual file may exceed 4GB and a complete system
backup may well break that limit, leaving you with a corrupt and useless
backup. The solution is simple: just reformat the USB drive as an ext2
or ext3 partition. Ext2 & ext3 can both store files as large as the free
space on the disk.
> Based on what you say, there are several improvements I could make to my
> system, but it works fine as it is. However, I just installed CentOS on
> my second HD so I might try some of your ideas with that since my FF
> installation is my production distro and I'd rather not run the risk of
> messing it up.
Sure, I can see why you'd not want to fiddle with the production system.
However, once you've recovered from a dead disk or done a fresh install
from a new distro version you'll see the benefit of keeping /home in a
separate partition. The symlink tricks just increase the benefit.
Making copies of customized files outside /etc is IMO essential. Its
well worth spending time going through /etc looking for files with dates
after the date&time when you did the install. Take a look at the find
utility - its designed for this type of search. Doing the same for /var
is only necessary if you're running named (the DNS domain files are in
/var/named) or Apache (the root Web pages are in /var/www).
The other common partitioning trick is to put /var (and maybe /tmp) in
their own partitions. Both can grow unpredictably and putting them in
separate partitions limits that growth and prevents, say runaway writes
to /tmp, from having too much impact on the system.

Signature
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |