mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
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
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1cfdbecfef
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-12-05 (Mon, 05 Dec 2011)
------------------
This commit was generated by Migit
This commit is contained in:
3
data/scripts/backup.list
Normal file
3
data/scripts/backup.list
Normal file
@@ -0,0 +1,3 @@
|
||||
/bin/backup.sh
|
||||
/bin/backup.list
|
||||
/var/tuxbox/config/
|
@@ -1,5 +1,12 @@
|
||||
#!/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
|
||||
|
Reference in New Issue
Block a user