User Tools

Site Tools


virtualization:xenserver:xenserver_backup_system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
virtualization:xenserver:xenserver_backup_system [2015/04/20 10:22]
gcooper
virtualization:xenserver:xenserver_backup_system [2017/03/25 11:03] (current)
gcooper
Line 1: Line 1:
 ====== Free XenServer Backup System ====== ====== Free XenServer Backup System ======
 +
 +See also **[[computing:backup:xenserver_backup|XenServer Backup]]**
 +
 +See also **[[virtualization:xenserver:xenserver_vss|XenServer VSS Provider]]**
  
 **Main Reference Article**: http://www.charleslabri.com/back-up-xenserver-6-to-network-share-with-fancy-scripting-and-lots-of-fun-and-no-downtime/ **Main Reference Article**: http://www.charleslabri.com/back-up-xenserver-6-to-network-share-with-fancy-scripting-and-lots-of-fun-and-no-downtime/
Line 142: Line 146:
 ===== Configure Scheduling ===== ===== Configure Scheduling =====
  
-:!: The ''/2'' in the below makes the backups only happen every other day.  Remove the ''/2'' for every day.+:!: There must be a newline at the end of the line or cron won't run the job.
  
-This will add ''cron'' jobs to run backups every other day starting at 10:00pm:+:!: Some systems wont run the cron job if the filename has a '.(dot) in the name.
  
-<file> +This will add a ''cron'' job to run backups every day at 10:30pm:
-cat << EOF > /etc/cron.d/backup.cron +
- +
-# XenServer VM Backup Scheduling +
-30 22 */2 * * root /opt/backup/cleanup.sh +
-40 22 */2 * * root /opt/backup/audit.sh +
-50 22 */2 * * root /opt/backup/meta-backup.sh +
-00 23 */2 * * root /opt/backup/vm_backup.sh+
  
 +<file>
 +cat << EOF > /etc/cron.d/backup
 +30 22 * * * root /opt/backup/cleanup.sh && /opt/backup/audit.sh && /opt/backup/meta-backup.sh && /opt/backup/vm_backup.sh
 EOF EOF
 +
 +chmod 644 /etc/cron.d/backup
 </file> </file>
  
Line 166: Line 168:
 mount /mnt/backup mount /mnt/backup
 mkdir -p /mnt/backup/Scripts/ mkdir -p /mnt/backup/Scripts/
-cp -/sbin/dbtool /mnt/backup/Scripts/ +/bin/cp -af /sbin/dbtool /mnt/backup/Scripts/ 
-cp -/etc/fstab /mnt/backup/Scripts/ +/bin/cp -af /etc/fstab /mnt/backup/Scripts/ 
-cp -/opt/backup/Scripts/* /mnt/backup/Scripts/ +/bin/cp -af /opt/backup/* /mnt/backup/Scripts/ 
-cp -/etc/ssmtp/ssmtp.conf /mnt/backup/Scripts/+/bin/cp -af /etc/ssmtp/ssmtp.conf /mnt/backup/Scripts/ 
 +/bin/cp -af /etc/cron.d/backup /mnt/backup/Scripts/ 
 +rm -f /mnt/backup/Scripts/message.tmp 
 +#umount /mnt/backup
 </file> </file>
  
virtualization/xenserver/xenserver_backup_system.1429546952.txt.gz · Last modified: 2015/04/20 10:22 by gcooper