Skip to content

Commit f87a801

Browse files
committed
Update README.md
1 parent 0abe1be commit f87a801

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,13 @@ This will back up the all files and folders, once per day, and write it to ./bac
243243
#### example for crontab file
244244

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

248250
##### # backup exclude cakephp, backups folders in ${DIRECTORY_PATH}
251+
```
249252
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}
253+
```
250254

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

0 commit comments

Comments
 (0)