Re: backing up /etc - exceptions
hi ya shri
> > #
> > # backup of last 7 days
> > #
> > # adjust days to when the last time you did your manual backups
> > #
> > days=7
> > ymd=(date +20%y.%m.%d)
> > #
> > mount /dev/hdxxxx /mnt/backup
> > find /etc -mtime -$days -print |tar
> zcvf/mnt/backup/etc.$ymd.$days.tgz -T -
> > umount /mnt/backup
to exclude stuff from backups
find /etc ..... |
egrep -iv "foo|bar|junk|tmp" |
tar zcvf ....
you can also use tar ... --exclude path/foo.c ...
when installing new packages or updates.. always save your
config first.... than update and check if it modified your
cpnfig files or not..
- its dangerous if it: ( just picking on httpd.conf filename only )
mv /etc/httpd/httpd.conf /etc/httpd/httpd.conf.old
installs its own new/updated httpd.conf
it should be installing its new config as httpd.conf.new
c ya
alvin
> Thanks, that was certainly helpful.
>
> On a sidenote, if a package installed new config files today and I
> didn't touch them - would they still be backup up ? If so, is there any
> way to stop them from being backup up. If not, is there any way to get
> them to be backed up ? Just curious.
>
> Regards,
>
>
>
> Shri
> ------------------------------------------------------------------------
> Shri Shrikumar U R Byte Solutions
> I.T. Consultant 23 McDonald Road Tel: (0131) 558 9990
> Email: shri@urbyte.com Edinburgh EH7 4LX Web: www.urbyte.com
>
>
Reply to: