diff options
Diffstat (limited to 'scripts/system-backup')
-rwxr-xr-x | scripts/system-backup | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/system-backup b/scripts/system-backup index 780463e..9d65cd2 100755 --- a/scripts/system-backup +++ b/scripts/system-backup @@ -28,7 +28,7 @@ FILELIST=" /opt/openslx/configs /etc/lighttpd/server.pem /etc/lighttpd/chain.pem - /srv/openslx/www/boot/default/config.tgz + /etc/lighttpd/pub-cert.pem " tar --ignore-failed-read -k -c -p -z -f files.tgz $FILELIST # no quotes here! @@ -56,6 +56,8 @@ if ! mv backup.tgz "$FILE"; then exit 1 fi +rm -rf -- /root/backup/1* + echo "Location: $FILE" exit 0 |