File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -246,12 +246,18 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s
246246
247247This 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
248248
249- #### example for crontab file
249+ #### example for crontab file on the host machine
250250
251251##### # old docker backup folder remove
252+
253+ ```
25225450 23 * * * find ${DIRECTORY_PATH}/backups/backup* -type f -mtime +1 | xargs rm
255+ ```
253256
254257##### # backup exclude joomla, backups folders in ${DIRECTORY_PATH}
258+
259+ ```
25526000 01 * * * tar -czvf ${DIRECTORY_PATH}/backups/'backup-example.com-'$(date +"\%Y-\%m-\%dT\%H-\%M-\%S")'.tar.gz' --exclude='joomla/cache' --exclude='joomla/tmp' --exclude='joomla/includes' --exclude='backups' ${DIRECTORY_PATH}
261+ ```
256262
257263[ CronHowto] ( https://help.ubuntu.com/community/CronHowto )
You can’t perform that action at this time.
0 commit comments