location of some files for system backup
Posted: Wed Feb 16, 2011 9:32 pm
Since I lost so much (data, time, energy) in my harddrive failure (Ontrack sent it to their clean room so that shows it is bad), I am FINALLY developing an RSYNC-based backup scheme. I have a USB attached drive, so rsync run via cron is an easy solution. Provided you know what to back up! So far in my /etc/crontab I have:
I may add backing up /root to this, or in a onetime thing.
I learned how to get the local SID for Samba by:
but this is a onetime backup item that I would then push into a new server with
But there is the mysql database to back up as well. Where is that located?
And is there anything else I should consider backing up?
Code: Select all
1 4 * * * root /usr/bin/rsync -a /home/ /media/2GHJTCB4/backups/hda/home
7 3 * * * root /usr/bin/rsync -a --delete /var/hda/files/ /media/2GHJTCB4/backups/hda/files
5 2 * * * root /usr/bin/rsync -a --backup /etc/ /media/2GHJTCB4/backups/hda/etc
I learned how to get the local SID for Samba by:
Code: Select all
net getlocalsid > localsid.txt
Code: Select all
net setlocalsid <localsid>
And is there anything else I should consider backing up?