Skip to content

Commit

Permalink
line 61 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYtechie authored Mar 5, 2020
1 parent 1f146f0 commit 1ff9ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/docker_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if [ -f ./backups/dropbox ]; then

#upload new backup to dropbox
echo "uploading to dropbox"
$dropboxuploader upload ./backups/$backupfile $dropboxfolder
$dropboxuploader upload ./backups/$backupfile $backupfile

#list older files to be deleted from cloud (exludes last 7)
#to change dropbox backups retained, change below -7 to whatever you want
Expand Down

2 comments on commit 1ff9ff3

@eriktheV-king
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@olonsoft
Copy link

@olonsoft olonsoft commented on 1ff9ff3 Jun 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My backup does not work normally with this change. Because backup expects folder to be dropboxfolder=/IOTstackBU
With the previous version, my backups were at /IOTstackBU. The scripts check there for files and if there are more than 7 deletes the older ones.
Now backups are placed one level up and the old files are never deleted.

Please sign in to comment.