Backup policy
From Blackcannon wiki
Main_Page --- MYSQL --- SSH --- Laptop --- mail_server --- backup policy --- mincom --- samba --- itc280
| Table of contents |
BACKUPPC
Very useful tool this. Only suggestions I can make are in regards to the actual scheduling of backuppc which is denoted here
$Conf{FullPeriod} = X;
$Conf{IncrPeriod} = X;
Which states that It will conduct a backup every X days, either full or incremental. You can specify how many times per day you it will go off but not at what times specifically - tho you can specify time blocks that its not to go off within.
To disable a client from scheduled backups you must enter this
$Conf{FullPeriod} = -1;
at which point it will respond to manual backups but not automated.
IDEA: Disable scheduled backups as noted above AND USE CRONTAB TO HANDLE SCHEDULING WITH SPECIFIC TIMES... SEE BELOW
HOSTS
(These should be used for archive purposes mostly - system restore junk and whatnot)
Full Backups
- Executes a Full Backup once a week for two months
$Conf{FullPeriod} = 7; - does a Full Backup once every 7 days
$Conf{FullKeepCnt} = 8; - keeps a total of 8 Full Backups (8 weeks)
$Conf{FullAgeMax} = 60; - keeps Full Backups for a total of 60 days (8 weeks)
$Conf{FullKeepCntMin} = 4; - keeps 4 Full Backups no matter how old they are
Incremental Backups
- does nightly incrementals for 30 days
$Conf{IncrPeriod} = 1; - executes incremental every night
$Conf{IncrKeepCnt} = 30; - keeps a total of 30 incremental backups
$Conf{IncrAgeMax} = 30; - keeps incr backups for a total of 30 days
$Conf{IncrKeepCntMin} = 15; - keeps a minimum of 15 incr no matter how old they are
SHARES
(these should be used for primary access)Web
$Conf{FullPeriod} = 30; - does a Full Backup once every 30 days
$Conf{FullKeepCnt} = 6; - keeps a total of 6 Full Backups (6 months)
$Conf{FullAgeMax} = 180; - keeps Full Backups for a total of 180 days (6 months)
$Conf{FullKeepCntMin} = 3; - keeps 3 Full Backups no matter how old they are
$Conf{IncrPeriod} = .25; - executes incremental 4 times a day
$Conf{IncrKeepCnt} = 240; - keeps a total of 240 incremental backups (2 months)
$Conf{IncrAgeMax} = 180; - keeps incr backups for a total of 180 days
$Conf{IncrKeepCntMin} = 60; - keeps a minimum of 60 incr no matter how old they are (15 days)
$Conf{FullPeriod} = 30; - does a Full Backup once every 30 days
$Conf{FullKeepCnt} = 6; - keeps a total of 6 Full Backups (6 months)
$Conf{FullAgeMax} = 180; - keeps Full Backups for a total of 180 days (6 months)
$Conf{FullKeepCntMin} = 3; - keeps 3 Full Backups no matter how old they are
$Conf{IncrPeriod} = .25; - executes incremental 4 times a day
$Conf{IncrKeepCnt} = 240; - keeps a total of 240 incremental backups (2 months)
$Conf{IncrAgeMax} = 180; - keeps incr backups for a total of 180 days
$Conf{IncrKeepCntMin} = 60; - keeps a minimum of 60 incr no matter how old they are (15 days)
Client
Should a client host a website with us and want this feature we can set it up for them on a per-domain basis so they can login under their own credentials, browse, and restore backups as necessary. We can set this up to backup at whatever schedule they like.
Crontab Scheduling Follows
###::::::::::::::::::::: Critical Domain-Level Production Stuff ::::::::::::::::::::::::::### ### ---> Incremental backup of web and mail every 6 hours - so at 0600, 1200, 1800 and midnight 0 */6 * * * sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -i mail 0 */6 * * * sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -i web ### ---> Execute incremental backup of Deathstar every 12 hours * */12 * * * sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -i deathstar ### ---> Execute full backup on the 30th of every month * * 30 * * sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f mail * * 30 * * sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f web * * 30 * * sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f deathstar ### ---> Execute full backup on Feb28th (won't be covered by the above crontab otherwise) * * 28 2 * sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f mail * * 28 2 * sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f web * * 28 2 * sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f deathstar
###::::::::::::::::::::: Host Level Stuff (mostly for whole restores) ::::::::::::::::::::::::::### ### execute incr every night * * * * */1 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -i localhost * * * * */1 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -i bigiron * * * * */1 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -i deathstar * * * * */1 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -i lex * * * * */1 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -i argus ### execute full on the 7th day ov every week * * * * 7 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f localhost * * * * 7 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f bigiron * * * * 7 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f deathstar * * * * 7 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f lex * * * * 7 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -f argus

