File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -240,14 +240,16 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s
240240
241241This will back up the all files and folders, once per day, and write it to ./backups with a filename like backup-2022-02-07T16-51-56.tar.gz
242242
243- #### example for crontab file
243+ #### example for crontab file on the host machine
244244
245245##### # old docker backup folder remove
246+
246247```
24724850 23 * * * find ${DIRECTORY_PATH}/backups/backup* -type f -mtime +1 | xargs rm
248249```
249250
250251##### # backup exclude cakephp, backups folders in ${DIRECTORY_PATH}
252+
251253```
25225400 01 * * * tar -czvf ${DIRECTORY_PATH}/backups/'backup-example.com-'$(date +"\%Y-\%m-\%dT\%H-\%M-\%S")'.tar.gz' --exclude='cakephp/app' --exclude='backups' ${DIRECTORY_PATH}
253255```
You can’t perform that action at this time.
0 commit comments