mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:36 +02:00
update yourls
This commit is contained in:
parent
e3b0a9f547
commit
60e92d6875
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user