Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e5557b83
authored
Mar 17, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
backup related scripts added
parent
65079437
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
sails/cron/backpredb.sh
sails/cron/cron-primer.sh
sails/cron/backpredb.sh
0 → 100644
View file @
e5557b83
#!/bin/bash
# This script is to be run in a remote machine with access to pre
DUMPFILE
=
/home/ubuntu/backup/
`
date +%d
`
-mysqldump
.sql.gz
ssh pre
"nice mysqldump -u root -p'r00...Tt' pictodb | gzip >
$DUMPFILE
"
scp pre:
$DUMPFILE
/home/amontejo/backup
sails/cron/cron-primer.sh
0 → 100644
View file @
e5557b83
#!/bin/bash -
# export PATH=/bin is required for cut, date, grep
# export PATH=/usr/bin is required for AWS Command Line Interface tools
export
PATH
=
/bin:/usr/bin:/home/ubuntu/.local/bin
# AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY needed for AWS CLI tools
export
AWS_ACCESS_KEY_ID
=
AKIAJJZNE3V5QMKSMU6A
export
AWS_SECRET_ACCESS_KEY
=
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
# AWS_CONFIG_FILE required for AWS Command Line Interface tools (f.e. ".aws")
export
AWS_CONFIG_FILE
=
/root/.aws/config
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