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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos
Commits
94111bb2
Commit
94111bb2
authored
Nov 26, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner-backup: doesn't destroy symlinks for Software Releases
while restoring a backup
parent
2b0fdd65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
slapos/recipe/slaprunner/backup.py
slapos/recipe/slaprunner/backup.py
+2
-2
No files found.
slapos/recipe/slaprunner/backup.py
View file @
94111bb2
...
@@ -70,7 +70,7 @@ class ExportRecipe(GenericBaseRecipe):
...
@@ -70,7 +70,7 @@ class ExportRecipe(GenericBaseRecipe):
fi
fi
done
done
}
}
sync_element %(srv-directory)s/runner %(backup-directory)s/runner/ instance project proxy.db
softwareLink
sync_element %(srv-directory)s/runner %(backup-directory)s/runner/ instance project proxy.db
sync_element %(etc-directory)s %(backup-directory)s/etc/ .rcode .project .users .htpasswd ssh
sync_element %(etc-directory)s %(backup-directory)s/etc/ .rcode .project .users .htpasswd 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/*
...
@@ -119,7 +119,7 @@ class ImportRecipe(GenericBaseRecipe):
...
@@ -119,7 +119,7 @@ class ImportRecipe(GenericBaseRecipe):
fi
fi
done
done
}
}
restore_element %(backup-directory)s/runner/ %(srv-directory)s/runner instance project proxy.db
softwareLink
restore_element %(backup-directory)s/runner/ %(srv-directory)s/runner instance project proxy.db
restore_element %(backup-directory)s/etc/ %(etc-directory)s .rcode .project .users .htpasswd ssh
restore_element %(backup-directory)s/etc/ %(etc-directory)s .rcode .project .users .htpasswd ssh
ifs=$IFS IFS=';'
ifs=$IFS IFS=';'
read user pass remaining < %(etc-directory)s/.users
read user pass remaining < %(etc-directory)s/.users
...
...
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