Skip to content

Commit 34c5d17

Browse files
committed
Update to Oauth2 III
1 parent 583e08e commit 34c5d17

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
files/*
33
.idea/
44
dropbox_token.json
5-
venv/
5+
venv/
6+
backup-postgres.sh

backup-postgres-example.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#Create Folder
2+
cd /home/user/labs/backup-postgres/
23
mkdir -p "files"
34

45
#backup Postgres
56
pg_dump --no-owner -h painel.bolsadedados.com.br -p 5432 -U postgres database | gzip > /home/user/labs/backup-postgres/files/alerta_$(date +%d-%m-%y-%H-%M-%S).gz
67

78
#Upload to Dropbox
8-
cd /home/user/labs/backup-postgres/
99
/home/user/.local/share/virtualenvs/backup-postgres-wR48kqji/bin/python /home/user/labs/backup-postgres/dropbox_upload.py

0 commit comments

Comments
 (0)