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/05/18 11:21]
gcooper
virtualization:xenserver:xenserver_backup_system [2017/03/25 11:03] (current)
gcooper
Line 2: Line 2:
  
 See also **[[computing:backup:xenserver_backup|XenServer Backup]]** 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 144: Line 146:
 ===== Configure Scheduling ===== ===== Configure Scheduling =====
  
-:!: Leave the blank line...it's needed or the cron job won't run.+:!: There must be a newline at the end of the line or cron won't run the job. 
 + 
 +:!: Some systems wont run the cron job if the filename has a '.' (dot) in the name.
  
 This will add a ''cron'' job to run backups every day at 10:30pm: This will add a ''cron'' job to run backups every day at 10:30pm:
Line 151: Line 155:
 cat << EOF > /etc/cron.d/backup 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 30 22 * * * root /opt/backup/cleanup.sh && /opt/backup/audit.sh && /opt/backup/meta-backup.sh && /opt/backup/vm_backup.sh
- 
 EOF EOF
  
Line 170: Line 173:
 /bin/cp -af /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/ /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.1431969697.txt.gz · Last modified: 2015/05/18 11:21 by gcooper