IOTstack icon indicating copy to clipboard operation
IOTstack copied to clipboard

Dropbox backup creates wrong filetype on Dropbox

Open eriktheV-king opened this issue 5 years ago • 2 comments

Hello and congrats to all working on this wonderful project! When installed on my Pi3B+, docker_backup.sh seems to create a file named IOTstackBU, without any extension, in the Apps folder on my dropbox. I can untarzip this extensionless file without any problem, to extract the supposed backup set of files, as correctly created by docker_backup.sh in the ~/IOTstack/backups folder where it was correctly named backupfile.tar.gz To make docker_backup.sh work correctly, line 61 should be changed to : $dropboxuploader upload ./backups/$backupfile $backupfile (instead of $dropboxuploader upload ./backups/$backupfile $dropboxfolder) The result will be a correctly named tarzipped file with the correct extension in your Apps folder on Dropbox.

eriktheV-king avatar Jan 12 '20 13:01 eriktheV-king

I had a similar problem but now it works. You should try to use absolute paths everywhere in the script.

    #setup variables
    dropboxfolder=/IOTstackBU
    dropboxuploader=/home/pi/Dropbox-Uploader/dropbox_uploader.sh
    dropboxlog=./backups/log_dropbox.txt

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

WagnerAlex avatar Feb 02 '20 10:02 WagnerAlex

dropboxuploader upload ./backups/$backupfile $backupfile

thank you very much @eriktheV-king. I can confirm that this works. @gcgarner please integrate this correction.

DIYtechie avatar Feb 21 '20 21:02 DIYtechie