835 B
835 B
Rotational Backup for ALL-INKL.COM
A PHP script that backs up the web server's HTML directories on ALL-INKL.COM (or elsewhere 😉). The script can be run with a KAS cron job. It is very suitable for people who only have an ALL-INKL.COM account and do not have a remote server with SSH and crontab.
Features
The Script creates the following folder structure and rotates it:
current -> /path/to/backup/daily.0
daily.0
daily.1
daily.2
daily.3
daily.4
daily.5
daily.6
daily.7
- The folder structure is automatically rotated when executing the KAS cron job.
- The oldest backup will be deleted automatically.
- A symlink to the most recent backup will be set.
- The variable
$NUM_BACKUPSdefines the maximum number of backups. The default value is 7 (for one week with a daily KAS cron job).