Skip to content

Commit 6beb524

Browse files
committed
Update README.md
1 parent a76ad69 commit 6beb524

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,18 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s
246246

247247
This 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+
```
252254
50 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+
```
255260
00 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)

0 commit comments

Comments
 (0)