Skip to content

Commit a5a1187

Browse files
committed
Update README.md
1 parent 566cdc8 commit a5a1187

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ change example.com to your domain name in ```./phpmyadmin/apache2/sites-availabl
108108

109109
Firstly: will create external volume
110110
```
111-
docker volume create --driver local --opt type=none --opt device=/home/ubuntu/full-stack-nginx-wordpress-for-everyone-with-docker-compose/certbot --opt o=bind certbot-etc
111+
docker volume create --driver local --opt type=none --opt device=${DIRECTORY_PATH}/certbot --opt o=bind certbot-etc
112112
```
113113

114114
```
@@ -272,9 +272,9 @@ This will back up the all files and folders, once per day, and write it to ./bac
272272
#### example for crontab file
273273

274274
##### # old docker backup folder remove
275-
50 23 * * * find /home/ubuntu/${DIRECTORY_PATH}/backups/backup* -type f -mtime +1 | xargs rm
275+
50 23 * * * find ${DIRECTORY_PATH}/backups/backup* -type f -mtime +1 | xargs rm
276276

277-
##### # backup exclude wordpress, backups folders in /home/ubuntu/${DIRECTORY_PATH}
278-
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}
277+
##### # backup exclude wordpress, backups folders in ${DIRECTORY_PATH}
278+
00 01 * * * tar -czvf ${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' ${DIRECTORY_PATH}
279279

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

0 commit comments

Comments
 (0)