From ccc03ef177cac5a1cf70ac908e913ca815c7ffc4 Mon Sep 17 00:00:00 2001 From: satbaby Date: Fri, 1 Apr 2011 12:13:09 +0000 Subject: [PATCH] use root as default dir git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1368 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- data/scripts/backup.sh | 4 ++-- data/scripts/restore.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/scripts/backup.sh b/data/scripts/backup.sh index 08966390b..c9d8f4f9e 100755 --- a/data/scripts/backup.sh +++ b/data/scripts/backup.sh @@ -1,5 +1,5 @@ #!/bin/sh DATE=`date +%Y-%m-%d-%H:%M:%S` echo Backup to $1/settings_$DATE.tar -cd /var/tuxbox/ -tar cf $1/settings_$DATE.tar config/ +cd / +tar cf $1/settings_$DATE.tar /var/tuxbox/config/ diff --git a/data/scripts/restore.sh b/data/scripts/restore.sh index f725f7c07..ba0e34f39 100755 --- a/data/scripts/restore.sh +++ b/data/scripts/restore.sh @@ -1,6 +1,6 @@ #!/bin/sh echo Restore settings from $1 -cd /var/tuxbox +cd / tar xf $1 sync sync