Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
damalis committed Sep 19, 2022
1 parent 9c686a3 commit c0e9e93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ The first authorize screen(htpasswd;username or password) and phpmyadmin login s

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

### example for crontab file
#### example for crontab file

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

#### # backup exclude wordpress, backups folders in /home/ubuntu/damalis
##### # backup exclude wordpress, backups folders in /home/ubuntu/damalis
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}

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

0 comments on commit c0e9e93

Please sign in to comment.