This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
virtualization:xenserver:xenserver_backup_system [2015/05/16 14:52] gcooper |
virtualization:xenserver:xenserver_backup_system [2017/03/25 11:03] (current) gcooper |
||
---|---|---|---|
Line 2: | Line 2: | ||
See also **[[computing: | See also **[[computing: | ||
+ | |||
+ | See also **[[virtualization: | ||
**Main Reference Article**: http:// | **Main Reference Article**: http:// | ||
Line 144: | Line 146: | ||
===== Configure Scheduling ===== | ===== Configure Scheduling ===== | ||
- | :!: The ''/ | + | :!: There must be a newline at the end of the line or cron won't run the job. |
- | This will add '' | + | :!: Some systems wont run the cron job if the filename has a ' |
+ | |||
+ | This will add a '' | ||
< | < | ||
cat << EOF > / | cat << EOF > / | ||
- | + | 30 22 * * * root / | |
- | # XenServer VM Backup Scheduling | + | |
- | 30 22 */2 * * root / | + | |
- | 40 22 */2 * * root / | + | |
- | 50 22 */2 * * root / | + | |
- | 00 23 */2 * * root / | + | |
EOF | EOF | ||
+ | |||
+ | chmod 644 / | ||
</ | </ | ||
Line 168: | Line 168: | ||
mount /mnt/backup | mount /mnt/backup | ||
mkdir -p / | mkdir -p / | ||
- | cp -a / | + | /bin/cp -af / |
- | cp -a /etc/fstab / | + | /bin/cp -af /etc/fstab / |
- | cp -a /opt/backup/Scripts/* / | + | /bin/cp -af / |
- | cp -a / | + | /bin/cp -af / |
- | cp -a / | + | /bin/cp -af / |
+ | rm -f / | ||
+ | #umount /mnt/backup | ||
</ | </ | ||