Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
isaak yansane-sisk
slapos
Commits
a9f0ef73
Commit
a9f0ef73
authored
Apr 24, 2014
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner.backup: segregation is enforced for hidden files
parent
b9b63ed8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
slapos/recipe/slaprunner/backup.py
slapos/recipe/slaprunner/backup.py
+4
-1
No files found.
slapos/recipe/slaprunner/backup.py
View file @
a9f0ef73
...
@@ -71,7 +71,9 @@ class ExportRecipe(GenericBaseRecipe):
...
@@ -71,7 +71,9 @@ class ExportRecipe(GenericBaseRecipe):
done
done
}
}
sync_element %(srv-directory)s/runner %(backup-directory)s/runner/ instance project proxy.db
sync_element %(srv-directory)s/runner %(backup-directory)s/runner/ instance project proxy.db
sync_element %(etc-directory)s %(backup-directory)s/etc/ .[^.]* config.json ssh
# We sync .* appart
cd %(etc-directory)s; %(rsync-binary)s -avz --safe-links --delete .[^.]* %(backup-directory)s/etc/
sync_element %(etc-directory)s %(backup-directory)s/etc/ config.json ssh
if [ -d %(backup-directory)s/runner/software ]; then
if [ -d %(backup-directory)s/runner/software ]; then
rm %(backup-directory)s/runner/software/*
rm %(backup-directory)s/runner/software/*
fi
fi
...
@@ -121,6 +123,7 @@ class ImportRecipe(GenericBaseRecipe):
...
@@ -121,6 +123,7 @@ class ImportRecipe(GenericBaseRecipe):
}
}
restore_element %(backup-directory)s/runner/ %(srv-directory)s/runner instance project proxy.db
restore_element %(backup-directory)s/runner/ %(srv-directory)s/runner instance project proxy.db
restore_element %(backup-directory)s/etc/ %(etc-directory)s .[^.]* config.json ssh
restore_element %(backup-directory)s/etc/ %(etc-directory)s .[^.]* config.json ssh
cd %(backup-directory)s/etc/; %(rsync-binary)s --delete .[^.]* %(etc-directory)s;
%(curl-binary)s --insecure -vg6L --max-time 5 %(backend-url)s/isSRReady;
%(curl-binary)s --insecure -vg6L --max-time 5 %(backend-url)s/isSRReady;
"""
%
self
.
options
)
"""
%
self
.
options
)
self
.
createExecutable
(
wrapper
,
content
=
content
)
self
.
createExecutable
(
wrapper
,
content
=
content
)
...
...
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