Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5c0c445b
Commit
5c0c445b
authored
Feb 10, 2017
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backup etcd only before migration
parent
b31cf72f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
migrate-if-needed.sh
cluster/images/etcd/migrate-if-needed.sh
+1
-1
No files found.
cluster/images/etcd/migrate-if-needed.sh
View file @
5c0c445b
...
@@ -152,7 +152,7 @@ ROLLBACK="${ROLLBACK:-/usr/local/bin/rollback}"
...
@@ -152,7 +152,7 @@ ROLLBACK="${ROLLBACK:-/usr/local/bin/rollback}"
# If we are upgrading from 2.2.1 and this is the first try for upgrade,
# If we are upgrading from 2.2.1 and this is the first try for upgrade,
# do the backup to allow restoring from it in case of failed upgrade.
# do the backup to allow restoring from it in case of failed upgrade.
BACKUP_DIR
=
"
${
DATA_DIRECTORY
}
/migration-backup"
BACKUP_DIR
=
"
${
DATA_DIRECTORY
}
/migration-backup"
if
[
"
${
CURRENT_VERSION
}
"
=
"2.2.1"
-a
!
-d
"
${
BACKUP_DIR
}
"
]
;
then
if
[
"
${
CURRENT_VERSION
}
"
=
"2.2.1"
-a
!
"
${
CURRENT_VERSION
}
"
!=
"
${
TARGET_VERSION
}
"
-a
-d
"
${
BACKUP_DIR
}
"
]
;
then
echo
"Backup etcd before starting migration"
echo
"Backup etcd before starting migration"
mkdir
${
BACKUP_DIR
}
mkdir
${
BACKUP_DIR
}
ETCDCTL_CMD
=
"/usr/local/bin/etcdctl-2.2.1"
ETCDCTL_CMD
=
"/usr/local/bin/etcdctl-2.2.1"
...
...
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