Files
neutrino/data/scripts/backup.sh
satbaby 1cfdbecfef backup.sh: more flexibility with backup.list
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1938 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-12-05 20:39:24 +00:00

13 lines
246 B
Bash
Executable File

#!/bin/sh
DATE=`date +%Y-%m-%d-%H:%M:%S`
BACKUPLIST=/bin/backup.list
echo Backup to $1/settings_$DATE.tar
cd /
if [ ! -e $BACKUPLIST ]; then
tar cf $1/settings_$DATE.tar /var/tuxbox/config/
else
tar cf $1/settings_$DATE.tar -T $BACKUPLIST
fi