Re: backing up /etc
assuming oyu have a different disk mounted as /mnt/backup
( never backup important data to the same hard disk )
# backup of last 7 days
# adjust days to when the last time you did your manual backups
mount /dev/hdxxxx /mnt/backup
find /etc -mtime -$days -print |tar zcvf/mnt/backup/etc.$ymd.$days.tgz -T -
scriptize and "cron-ize" the above... :-)
On Tue, 19 Mar 2002, Shri Shrikumar wrote:
> Hi All,
> Simple question - is there a way to backup merely the files in /etc that
> have been modified.
> Only a dozen or so config files have been modified and it seems a bit of
> a waste to backup around 5Mb of config files when the ones that have
> been modified could easily fit on a floppy along with a copy of
> dpkg --get-selections.
> The other reason is what happens if one of the packges (whose config I
> havent touched) has a new standard config file perhaps with better
> security - I would then be overwriting the new one.
> How does apt figure out when config files have been modified before
> asking whether it should install the package maintainers version or keep
> the current one.
> I hope this makes sense and thank you for your time.