On 8/24/22 13:28, Shadrock Uhuru wrote:
hi everyone
after losing a considerable amount of data that i had accumulated over
the last year or so
by trying to remove a directory called '~' that i had created by mistake
in a sub directory of my home directory with rm -rf ~
which of course started to eat through my home directory with a vengence,
i managed to stop it before it went to far,
i didn't have any recent backups,
needless to say i've learning my lesson about having a good policy of
regular backups.
what are the recommended partition to backup if
1 i want to do a fresh reinstall e.g. to move to a larger hard drive.
2 for a disaster recovery like what i experienced above.
i will be using ville walveranta's autodump 1.5a script
which does a full dump on sundays and incremental dumps during the week,
i already have /home /etc and /root set for backup,
are there any other partitions i should bear in mind ?
shadrock
I agree with "know exactly what you need" or "save everything"
If backups are cheap in time and money just save everything
as often as you can - daily if you do a lot online.
Rebuilding from incremental dumps can be painful.
Even if dumping everything I'd consider leaving out any directory
with "cache" in its name
That can potentially save many gigs of storage and hours of backup time.
Thunderbird and firefox usually have multiple gig databases.
If backups are expensive and you're being very, very selective, I'd add
to your list:
the output of pkg_info
/usr/local, /var/mail
potentially /usr/src, /var/www, /var/unbound, /var/nsd
any directories I added or I'm not sure about
any system directories where I've modified files
Any volumes not part of the base system have their own dump schedule.
hth
Geoff Steckel