Skip to content

Commit

Permalink
nc-backup: make sure destination dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 10, 2017
1 parent 47a9caf commit 20c35ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/nc-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ configure()
mysqldump -u root -p$DBPASSWD_ --single-transaction nextcloud > $DBBACKUP

echo -e "backup files..."
mkdir -p $DESTDIR
tar -cf $DESTFILE $DBBACKUP nextcloud/ && \
echo -e "backup $DESTFILE generated" || \
echo -e "error generating backup"
Expand Down

0 comments on commit 20c35ea

Please sign in to comment.