rc: silence tar's leading slash removal warning

This commit is contained in:
Franco Fichtner 2016-10-10 17:06:41 +02:00
parent 89c7a39f53
commit 259eb3808e
3 changed files with 3 additions and 3 deletions

View File

@ -9,6 +9,6 @@ if [ "${1}" = "restore" ]; then
fi
else
if [ -d "${BACKUPDIR}" ]; then
tar -C / -czf "${BACKUPFILE}" "${BACKUPDIR}"
tar -C / -czf "${BACKUPFILE}" ."${BACKUPDIR}"
fi
fi

View File

@ -10,7 +10,7 @@ if [ "${1}" = "restore" ]; then
else
if [ -d "${BACKUPDIR}" ]; then
/usr/local/etc/rc.d/flowd_aggregate stop
tar -C / -czf "${BACKUPFILE}" "${BACKUPDIR}"
tar -C / -czf "${BACKUPFILE}" ."${BACKUPDIR}"
if [ "${1}" != "stop" ]; then
/usr/local/etc/rc.d/flowd_aggregate start
fi

View File

@ -9,6 +9,6 @@ if [ "${1}" = "restore" ]; then
fi
else
if [ -d "${BACKUPDIR}" ]; then
tar -C / -czf "${BACKUPFILE}" "${BACKUPDIR}"
tar -C / -czf "${BACKUPFILE}" ."${BACKUPDIR}"
fi
fi