Skip to content

Commit 1f5e172

Browse files
committed
Update README.md
1 parent 8925ef6 commit 1f5e172

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,15 @@ This will back up the all files and folders, once per day, and write it to ./bac
244244
#### example for crontab file on the host machine
245245

246246
##### # old docker backup folder remove
247+
248+
```
247249
50 23 * * * find ${DIRECTORY_PATH}/backups/backup* -type f -mtime +1 | xargs rm
250+
```
248251

249252
##### # backup exclude cakephp, backups folders in ${DIRECTORY_PATH}
253+
254+
```
250255
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}
256+
```
251257

252258
[CronHowto](https://help.ubuntu.com/community/CronHowto)

0 commit comments

Comments
 (0)