... | ... | @@ -3,23 +3,23 @@ We have successfully created backups. |
|
|
Locally
|
|
|
|
|
|
```
|
|
|
$timestamp=$(date +%Y%m%d_%H%M%S%Z)
|
|
|
dokku config dbp2016-live > $timestamp_degrowth_scriptorium.cfg
|
|
|
dokku postgresql:dump dbp2016-live db_dbp2016 > $timestamp_degrowth_scriptorium.sql
|
|
|
TIMESTAMP=$(date +%Y%m%d_%H%M%S%Z)
|
|
|
dokku config dbp2016-live > $TIMESTAMP_degrowth_scriptorium.cfg
|
|
|
dokku postgresql:dump dbp2016-live db_dbp2016 > $TIMESTAMP_degrowth_scriptorium.sql
|
|
|
```
|
|
|
|
|
|
Remotely
|
|
|
|
|
|
```
|
|
|
~ $
|
|
|
$timestamp=$(date +%Y%m%d_%H%M%S%Z)
|
|
|
TIMESTAMP=$(date +%Y%m%d_%H%M%S%Z)
|
|
|
~ $ sudo su
|
|
|
almereyda # tar cvf $timestamp_degrowth_scriptorium.tar /var/lib/docker/volumes/0d78aeff608a6254f5c4af09853f03fb849c7010d269f642caeab864d56aaf41/_data
|
|
|
almereyda # chown almereyda:almereyda $timestamp_degrowth_scriptorium.tar
|
|
|
almereyda # tar cvf $TIMESTAMP_degrowth_scriptorium.tar /var/lib/docker/volumes/0d78aeff608a6254f5c4af09853f03fb849c7010d269f642caeab864d56aaf41/_data
|
|
|
almereyda # chown almereyda:almereyda $TIMESTAMP_degrowth_scriptorium.tar
|
|
|
```
|
|
|
|
|
|
Again locally
|
|
|
|
|
|
```
|
|
|
sftp apps.ecobytes.net:/home/almereyda/$timestamp_degrowth_scriptorium.tar .
|
|
|
sftp apps.ecobytes.net:/home/almereyda/$TIMESTAMP_degrowth_scriptorium.tar .
|
|
|
``` |
|
|
\ No newline at end of file |