...
The backup scripts are stored in /u3/scripts;
The log files for these scripts are stored in /u3/scripts/logs; These logs are rotated on dafnenfs from logrotated and the config file is in /etc/logrotate.d/nfs_rsync logrotate (check last point);
- The script u2_backup.sh is responsible to create a backup of /u2/dcs in /u3 and launch nfs_rsync.sh script to rsync data to nascoda1. The u2_backup.sh script is launched by crontab on host dafnenfs every day (see Table 2 for details);
- The script nfs_rsync.sh is responsible to rsync the data from the host where it is launched to nascoda1. It will send an email to Paolo Ciuffetti at his end to inform him on the backup status. It is launched by crontab on host danteweb danteweb and vlmonitor01 vldafneafp every day (see Table 2 for details);
- The host dafnenfs share /u3/scripts; danteweb and vlmonitor01 vldafneafp mount that folder via NFS on boot (folder present in /etc/fstab);
- The host dafnenfs has a custom configuration for logrotate present in /etc/logrotate.d/nfs_rsync to rotate log files generated by these scripts. It will rotate all log files every day, keeping them compressed in /u3/scripts/logs/old folder for 5 days.
...
Host | Folder | Backup Folder (nascoda1/2) | Description | |
---|---|---|---|---|
dafnenfs | /etc | server_data/dafnenfs/etc | Configuration files | |
dafnenfs | /data/diskless | diskless | Filesystem for VMIC diskless clients | |
dafnenfs | /data/export/exec/Solaris_9_sparc.all/usr | force_usr | User Filesystem for Force diskless clients | |
dafnenfs | /data/export/root | force_root | Root Filesystem for Force diskless clients | |
dafnenfs | /data/export/swap | force_swap | SWAP for Force diskless clients | |
dafnenfs | /data/u1 | u1 | ||
dafnenfs | /data/u2 | u2 | Control system, home folders (dafne, vmic e VMs) and other files | |
dafnenfs | /data/u3 | u3 | LVTemp, /data/u2 backup and other sensible files | |
dafnenfs | /siddharta | siddharta | Data written from Siddharta experiment and from DAFNE | |
dafnenfs | /data/backup_linacslmonitor | - | slmonitor | Folder for A. Stellavllinacctr001 VM backup (not backed up) |
danteweb | /etc | server_data/danteweb/etc | Configuration files | |
danteweb | /opt | server_data/danteweb/opt | Service scripts and data, including a crontab snapshot | |
danteweb | /var/lib/mysql | server_data/danteweb/mysql | Database files (backup disabled; to be re-enabled soon) | |
danteweb | /var/www | server_data/danteweb/var/www | Web files (backup disabled; to be re-enabled soon) | |
vldafneafpvlmonitor01 | /etc | server_data/vlmonitor01vldafneafp/etc | Configuration files | |
vlmonitor01vldafneafp | /optsrv | server_data/vlmonitor01vldafneafp/opt | Custom scripts (with Nagios custom plugins) | |
vlmonitor01 | /var/spool/nagios | server_data/vlmonitor01/var/spool/nagios | Nagios home (with public/private keys) | |
srv | APPLE DEVIL's FILESYSTEM data shared via AFP |
Table 1 - data folders
Backup planning
...
Server | Backup frequency | Time | Description |
---|---|---|---|
dafnenfs | daily | 01:30 | Create a backup of u2/dcs in u3 and then launch rsync script |
danteweb | daily | 01:10 | Launch rsync script |
vlmonitor01vldafneafp | daily | 02:01:05 | Launch rsync script |
Table 2 - Backup planning
...
Backups are planned on NAS nascoda1.lnf.infn.it (LAT room) and rsynced on NAS nascoda2 nasda.lnf.infn.it (Control Lab, Building 2, Room 117) with following planning (including single volume snapshots):
Source NAS | Destination NAS | Operation | Frequency | Time | Description | |||
---|---|---|---|---|---|---|---|---|
nascoda1 | local | Data volume snapshot | Smart Versioning | Daily- | 00:05 | Snapshot kept for 1 month | ||
nascoda1 | nascoda2 | NAS system volume snapshot and replica | Daily | 00:55 | Local NAS system volume snapshot and replica on nascoda2 | |||
nascoda1 | local | server_data volume snapshot | Weekly (Sunday) | 01:05 | Snapshot kept for 1 month | |||
Hourly snapshots: 24 Daily snapshots: 7 Weekly snapshots: 5 Monthly snapshots: 12 | ||||||||
nascoda1 | nasda | Data | nascoda1 | nascoda2 | Data and configuration volume sync | Daily | 04:00 | rsync data from nascoda1 to nascoda2 of all volumes |
nascoda2 | local | Data volume snapshot | Daily | 00:05 | Snapshot kept fpr 1 month | |||
nascoda2 | nascoda1 | NAS system volume snapshot and replica | Daily | 00:55 | Local NAS system volume snapshot and replica on nascoda1 | |||
nascoda2 | local | server_data volume snapshot | Weekly (Sunday) | 01:05 | Snapshot kept fpr 1 month | |||
nasda/nascoda folder |
Table 3 - Snapshot and replica planning
Monthly manual backup
Manual backup made every month (.tar.gz) of all data folder and saved in shared folder "DCS Backups" on nascoda1.lnf.infn.it
Recover data from backup
Read this documentation page.
...