====== Virtualmin - Backup ====== See also **[[networking:linux:webmin_backup|Webmin Backup]]** :!: Requires separate Webmin backup! * Backups require free space in ''/tmp'' * Estimate the amount of temporary space needed by the size of your largest Virtual Server * Choices for disk space: * Make sure the installation partition with the root filesystem has sufficient space * Extend the installation partition and root filesystem * Change the temporary folder used to one with more space * Add an additional disk/partition and mount it on ''/tmp'' * ''chmod 1777 /tmp'' * Scheduled backup jobs can cause disruptions of hosted services * Prioritize CPU utilization of scheduled jobs (**nice** level) * Prioritize IO utilization of scheduled jobs (**ionice** level) ===== Scheduled Backups ===== **Virtualmin -> Backup and Restore -> Scheduled Backups** * All Virtual Servers * Include Sub-Servers * Any Plan * Backup All Features * FTP Server * ''123.123.123.123'' * IP address or FQDN of FTP server * ''backupuser'' * FTP user name * Enable ''strftime-style time substitutions in the file or directory name'' * Enable ''Transfer each virtual server after it is backed up'' * Enable ''One File per server'' * Enable ''Create destination directory'' * Enable ''Continue with other features and servers'' * Enable ''Full (all files)'' * Configure ''Email backup report to'' (admin e-mail address) * Enable ''Only send email on failure'' (if you are confident the backups are working) * ''Kill the running backup'' if the destination is in use **Create two scheduled backup jobs**: * **Weekly Full** * ''Simple Schedule'' * ''Weekly on Sunday'' * ''Virtualmin/Full/%m-%d-%y'' as destination path * Name resulting backup as 'month-day-year' * ''Delete old backups after 60 Days'' * **Daily Incremental** (actually differential) * ''Virtualmin/Incremental/%m-%d-%y'' * ''Delete old backups after 6 Days'' * '' Incremental (only files changed since last full backup)'' * ''Complex schedule'' * ''At cron time 0 0 * * 1-6'' * At midnight Monday through Saturday {{ :internet:hosting:virtualmin_scheduled_backup.png?800 |Backup Schedule}} ===== Temporary Space and Resource Prioritization ===== **Webmin -> Webmin -> Webmin Configuration -> Advanced Options** * ''Temporary files directory'' -> ''/tmp/.webmin'' (default) * ''CPU priority for scheduled jobs'' -> ''10'' * ''IO priority for scheduled jobs'' -> ''5'' {{ :internet:hosting:webmin_scheduled_job_options.png?800 |Temp Space and Prioritization}}