1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00

update yourls

This commit is contained in:
kev 2019-02-28 15:43:28 +08:00
parent e3b0a9f547
commit 60e92d6875

View File

@ -61,10 +61,14 @@ $yourls_user_passwords = [
];
```
## Backup Database
## Backup and Restore
```bash
$ docker-compose exec -T mysql mysqldump -uroot -proot yourls > yourls-$(date +\%F).sql
# backup
$ docker-compose exec -T mysql mysqldump -uroot -proot yourls > yourls-$(date +%F).sql
# restore
$ docker exec -i yourls_mysql_1 mysql -uroot -proot yourls < yourls-$(date +%F -d yesterday).sql
```
[1]: http://yourls.org/