Commit 1d7cace0 authored by OskarStenberg's avatar OskarStenberg
Browse files

Updated backup

parent cf2a423a
......@@ -173,7 +173,7 @@ done <<< "$files"
#Try to make a patch of the database dump
file="db-dumps/mysql-snipeit.sql"
if [ -z "$(ls -A "$destinationDir/$lastBackup/patches")" ]; then
if [ -z "$(ls -Ap "$destinationDir/$lastBackup/patches" | grep -v /)" ]; then
diff -urN null $file > patch.patch
cp "patch.patch" "$destinationDir/$lastBackup/patches/$now.patch"
echo "Copied patch to $destinationDir/$lastBackup/patches/$now.patch"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment