Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soporte-backup-db
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jesús
soporte-backup-db
Commits
a82a22d4
Commit
a82a22d4
authored
Mar 11, 2026
by
Javier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
anyado configuracion para almacenar backup en Truenas1
parent
dfe4033f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
.env
.env
+8
-0
create_backup_db_soporte.py
create_backup_db_soporte.py
+3
-2
No files found.
.env
View file @
a82a22d4
...
...
@@ -6,6 +6,14 @@ DB_USER_SOPORTE = 'soporte'
DB_PASSWORD_SOPORTE = '_RW!2k14'
DB_NAME_SOPORTE = 'soporte'
HOST_SFTP_PBX='192.168.2.230'
USER_SFTP_PBX=admin
PWD_SFTP_PBX=_RW!2k14
HOST_SFTP_TRUENAS='192.168.2.241'
USER_SFTP_TRUENAS=ftp_backup
PWD_SFTP_TRUENAS=_RW!2k14
HOST_SFTP_TRUENAS2='192.168.2.240'
USER_SFTP_TRUENAS2=ftp_backup
PWD_SFTP_TRUENAS2=_RW!2k14
create_backup_db_soporte.py
View file @
a82a22d4
...
...
@@ -59,8 +59,9 @@ def upload_sftp_file():
file_upload
=
[]
if
len
(
contenido_backup
)
!=
0
:
# Creo conexión con el filecilla recorro contenido backup subiendo lo que encuentre
ftp
=
FTP
(
'192.168.2.230'
)
# connect to host, default port
ftp
.
login
(
user
=
getenv
(
'USER_SFTP_PBX'
),
passwd
=
getenv
(
'PWD_SFTP_PBX'
))
host
=
getenv
(
'HOST_SFTP_TRUENAS'
)
ftp
=
FTP
(
host
)
ftp
.
login
(
user
=
getenv
(
'USER_SFTP_TRUENAS'
),
passwd
=
getenv
(
'PWD_SFTP_TRUENAS'
))
directorio_almacenamiento_ftp
=
'DBsoporte'
ftp
.
cwd
(
directorio_almacenamiento_ftp
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment