Skip to content

Commit d479cf6

Browse files
committed
Update README.md
1 parent f87a801 commit d479cf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,16 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s
240240

241241
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
242242

243-
#### example for crontab file
243+
#### example for crontab file on the host machine
244244

245245
##### # old docker backup folder remove
246+
246247
```
247248
50 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
```
252254
00 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
```

0 commit comments

Comments
 (0)