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
Update backups, still personalised for almereyda
authored
Nov 07, 2017
by
jon r
Hide whitespace changes
Inline
Side-by-side
backups.md
View page @
8f353475
...
@@ -4,8 +4,8 @@ Locally
...
@@ -4,8 +4,8 @@ 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
...
@@ -14,12 +14,12 @@ Remotely
...
@@ -14,12 +14,12 @@ 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
almereyda@
apps.ecobytes.net:/home/almereyda/$TIMESTAMP
-
degrowth
-
scriptorium.tar .
```
```
\ No newline at end of file