Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

update to xenial #4

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
c3ac794
update to xenial
olegabr Aug 2, 2016
e77aa2f
The last available mysql-client is installed
olegabr Aug 3, 2016
a2c77f1
use gzip/gunzip to save disk space
olegabr Aug 3, 2016
ac6b084
fix
olegabr Aug 3, 2016
da620a4
fix
olegabr Aug 3, 2016
19b6760
fix
olegabr Aug 3, 2016
9a7b6cc
fix
olegabr Aug 3, 2016
85cf55e
fix
olegabr Aug 3, 2016
9f15039
fix
olegabr Aug 3, 2016
9e9f0dc
cleanup
olegabr Aug 3, 2016
3de4a18
timezone support
olegabr Aug 9, 2016
966592d
duplicity + sftp support
olegabr Aug 9, 2016
c4faca0
duplicity support
olegabr Aug 9, 2016
223bd81
DUPLICITY_EXTRA_OPTS support
olegabr Aug 9, 2016
10843f6
SFTP_PORT support
olegabr Aug 9, 2016
59cd8f1
DUPLICITY_ENCRYPT_PASSPHRASE support
olegabr Aug 9, 2016
9648287
fix
olegabr Aug 10, 2016
897aa6c
fix second run
olegabr Aug 10, 2016
504ec55
MAX_BACKUPS applyed only if SFTP is not used
olegabr Aug 10, 2016
16fecde
fix
olegabr Aug 10, 2016
d729ffe
fix
olegabr Aug 10, 2016
3128794
first restore draft
olegabr Aug 10, 2016
6d7e285
specify any time value, no only in days
olegabr Aug 10, 2016
4646895
DUPLICITY_ENCRYPT_PASSPHRASE for restore script
olegabr Aug 10, 2016
358d7dc
specify any time value, no only in days
olegabr Aug 10, 2016
31efcdf
restore-file-only.sh added
olegabr Aug 10, 2016
9291f67
docs
olegabr Aug 10, 2016
d199410
fix
olegabr Aug 10, 2016
b5fe0eb
mysql version up
olegabr Sep 19, 2016
8d318fe
mysql version up 5.7.16
olegabr Oct 14, 2016
51cdb6b
fix ssh config and duplicity cache dir
olegabr Nov 24, 2016
a20e5df
Ability to override all environment variables
olegabr Dec 21, 2016
dfc57e7
fix for previous commit
olegabr Dec 21, 2016
cdaa4da
fix
olegabr Dec 21, 2016
1400b14
restore from non-default directory
olegabr Dec 21, 2016
8a9671c
fix for spaces
olegabr Dec 21, 2016
9af8c63
workaround for long incremental backups
olegabr Dec 23, 2016
2f2f75e
pexpect+sftp scheme support
olegabr Dec 23, 2016
54572cd
mysql version up
olegabr Dec 23, 2016
f16a3a9
duplicity scheme is made tunable. sftp by default.
olegabr Dec 26, 2016
a7b5336
use flock to prevent dump script runs overlap
olegabr Dec 26, 2016
a154fac
Use MAX_BACKUPS to cleanup duplicity dumps
olegabr Dec 27, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
specify any time value, no only in days
olegabr committed Aug 10, 2016
commit 358d7dcbe6ff7d40864274f6fd003ab435417594
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ cat <<EOF >> /restore.sh
export PASSPHRASE=$DUPLICITY_ENCRYPT_PASSPHRASE

if [[ ! -z \${SFTP_USER} && ! -z \${SFTP_HOST} && ! -z \${SFTP_DIR} ]]; then
if duplicity --allow-source-mismatch --ssh-options="-oProtocol=2 -oIdentityFile=/root/.ssh/id_rsa" -t \${1} --file-to-restore ${MYSQL_DB}.sql sftp://\${SFTP_USER}@\${SFTP_HOST}:\${SFTP_PORT}/\${SFTP_DIR} /restore/${MYSQL_DB}-\${1}D.sql && gosu mysql mysql -h${MYSQL_HOST} -P${MYSQL_PORT} -u${MYSQL_USER} -p${MYSQL_PASS} < /restore/${MYSQL_DB}-\${1}.sql ;then
if duplicity --allow-source-mismatch --ssh-options="-oProtocol=2 -oIdentityFile=/root/.ssh/id_rsa" -t \${1} --file-to-restore ${MYSQL_DB}.sql sftp://\${SFTP_USER}@\${SFTP_HOST}:\${SFTP_PORT}/\${SFTP_DIR} /restore/${MYSQL_DB}-\${1}.sql && gosu mysql mysql -h${MYSQL_HOST} -P${MYSQL_PORT} -u${MYSQL_USER} -p${MYSQL_PASS} < /restore/${MYSQL_DB}-\${1}.sql ;then
echo " Restore succeeded"
else
echo " Restore failed"