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/16 14:58]
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 =====
  
-:!: Using ''*/2'' in the third (day of month) column makes the backups only happen every other 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. 
 + 
 +This will add ''cron'' job to run backups every day at 10:30pm:
  
 <file> <file>
 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
 +
 +chmod 644 /etc/cron.d/backup
 </file> </file>
  
Line 163: 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/ 
-cp -/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.1431809890.txt.gz · Last modified: 2015/05/16 14:58 by gcooper