Weiter am Backup gebastelt

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@979 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
maniacikarus
2007-10-19 16:21:32 +00:00
parent c6fbd6eadf
commit b8e5a9c576
3 changed files with 36 additions and 6 deletions

View File

@@ -36,16 +36,16 @@ remove_files() {
echo "...Finished."
}
make_backup(){
if [ -e "/var/ipfire/backup/addons/include/${1}" ];then
make_backup() {
if [ -e "/var/ipfire/backup/addons/includes/${1}" ];then
echo "Creating Backup..."
/usr/local/bin/backupctrl addonbackup ${1}
echo "...Finished."
fi
}
restore_backup(){
if [ -e "/var/ipfire/backup/addons/backup/${1}" ];then
restore_backup() {
if [ -e "/var/ipfire/backup/addons/backup/${1}.ipf" ];then
echo "Restoring Backup..."
/usr/local/bin/backupctrl restoreaddon ${1}.ipf
echo "...Finished."