File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -261,12 +261,12 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s
261
261
262
262
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
263
263
264
- ### example for crontab file
264
+ #### example for crontab file
265
265
266
- #### # old docker backup folder remove
266
+ ##### # old docker backup folder remove
267
267
50 23 * * * find /home/ubuntu/${DIRECTORY_PATH}/backups/backup* -type f -mtime +1 | xargs rm
268
268
269
- #### # backup exclude wordpress, backups folders in /home/ubuntu/damalis
269
+ ##### # backup exclude wordpress, backups folders in /home/ubuntu/damalis
270
270
00 01 * * * tar -czvf /home/ubuntu/${DIRECTORY_PATH}/backups/'backup-example.com-'$(date +"\% Y-\% m-\% dT\% H-\% M-\% S")'.tar.gz' --exclude='wordpress/wp-admin' --exclude='wordpress/wp-includes' --exclude='backups' /home/ubuntu/${DIRECTORY_PATH}
271
271
272
272
[ CronHowto] ( https://help.ubuntu.com/community/CronHowto )
You can’t perform that action at this time.
0 commit comments