Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
degrowth
scriptorium
Wiki
backups
backups
· Changes
Page history
backups : variable declaration
authored
Nov 15, 2016
by
jon r
Hide whitespace changes
Inline
Side-by-side
backups.md
View page @
bbfd9832
...
@@ -3,23 +3,23 @@ We have successfully created backups.
...
@@ -3,23 +3,23 @@ We have successfully created backups.
Locally
Locally
```
```
$timestamp
=$(date +%Y%m%d_%H%M%S%Z)
TIMESTAMP
=$(date +%Y%m%d_%H%M%S%Z)
dokku config dbp2016-live > $
timestamp
_degrowth_scriptorium.cfg
dokku config dbp2016-live > $
TIMESTAMP
_degrowth_scriptorium.cfg
dokku postgresql:dump dbp2016-live db_dbp2016 > $
timestamp
_degrowth_scriptorium.sql
dokku postgresql:dump dbp2016-live db_dbp2016 > $
TIMESTAMP
_degrowth_scriptorium.sql
```
```
Remotely
Remotely
```
```
~ $
~ $
$timestamp
=$(date +%Y%m%d_%H%M%S%Z)
TIMESTAMP
=$(date +%Y%m%d_%H%M%S%Z)
~ $ sudo su
~ $ sudo su
almereyda # tar cvf $
timestamp
_degrowth_scriptorium.tar /var/lib/docker/volumes/0d78aeff608a6254f5c4af09853f03fb849c7010d269f642caeab864d56aaf41/_data
almereyda # tar cvf $
TIMESTAMP
_degrowth_scriptorium.tar /var/lib/docker/volumes/0d78aeff608a6254f5c4af09853f03fb849c7010d269f642caeab864d56aaf41/_data
almereyda # chown almereyda:almereyda $
timestamp
_degrowth_scriptorium.tar
almereyda # chown almereyda:almereyda $
TIMESTAMP
_degrowth_scriptorium.tar
```
```
Again locally
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