Skip to content

Commit

Permalink
nc-backup: better avoid duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed May 11, 2018
1 parent 5dca250 commit dbc3094
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ INCLUDEDATA="${2:-no}"
COMPRESS="${3:-no}"
BACKUPLIMIT="${4:-4}"
DESTFILE="$DESTDIR"/nextcloud-bkp_$( date +"%Y%m%d" ).tar
DESTFILE="$DESTDIR"/nextcloud-bkp_$( date +"%Y%m%d_%s" ).tar
DBBACKUP=nextcloud-sqlbkp_$( date +"%Y%m%d" ).bak
BASEDIR=/var/www
Expand Down
6 changes: 6 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ done
}
}

# update nc-backup
cd "$CONFDIR" &>/dev/null
install_script nc-backup.sh
cd - &>/dev/null


} # end - only live updates

exit 0
Expand Down

0 comments on commit dbc3094

Please sign in to comment.