Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section 3rd Party Software
  • Search

Upload Vesta user backups to Dropbox automatically daily

Section with additional software for Vesta
Post Reply
  • Print view
Advanced search
30 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
vesta_mtl
Posts: 70
Joined: Wed Dec 21, 2016 2:08 pm

Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by vesta_mtl » Tue Jan 16, 2018 12:11 pm

It is possible that there is no backup with the current date. The script needs to run on the same day that the backup is created, because it looks for a backup with the current date in its name.
Top

ruinzaO
Posts: 4
Joined: Fri Sep 22, 2017 11:05 am

Os: Ubuntu 15x
Web: apache + nginx
Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by ruinzaO » Tue Jan 16, 2018 1:55 pm

vesta_mtl wrote:It is possible that there is no backup with the current date. The script needs to run on the same day that the backup is created, because it looks for a backup with the current date in its name.
I did the whole process again.
Even with a new backup, after doing the test the error appears.

I can send the file to the dropbox, but when I run the command the error appears.

I find it strange every time I type the command sh /usr/local/bin/send_site_backup_files_to_dropbox.sh it requests the token and after typing the token gives error.

Prints
https://imgur.com/a/xyrgC
https://imgur.com/a/UyWll
https://imgur.com/a/8M95S
Top

vesta_mtl
Posts: 70
Joined: Wed Dec 21, 2016 2:08 pm

Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by vesta_mtl » Sun Jan 21, 2018 10:56 pm

ruinzaO wrote:
vesta_mtl wrote:
ruinzaO wrote:Friend, thanks for the great work!
I noticed that my backups were added "admin.2018-01-15_05-10-12.tar" the time, so the file is not being renamed to admin.tar in the dropbox, could you add a fix in the script?

Many thanks and I'm sorry, I'm using google.
Yes, the script needed to be updated because Vesta now includes the time in the backup filename. I have updated my original post and the script should now work with the old Vesta (only yyyy-mm-dd in filename) and the new Vesta (yyyy-mm-dd_hh-mm-ss in the filename).

Let me know if you have any trouble. Your Google translation is excellent! :-)
Thanks for the answer!
Friend in setup this error appears.
/dropbox/dropbox_uploader.sh: line 1559: : No such file or directory

Am I doing something wrong?
There is an issue with the latest release of the Dropbox script. I have updated my instructions (the "curl" command above) to retrieve the older version of the script from github and it should work again.

You can remove the dropbox folder by doing this:

Code: Select all

rm -rf /dropbox
And then re-do the steps above using the new github url.
Top

vesta_mtl
Posts: 70
Joined: Wed Dec 21, 2016 2:08 pm

Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by vesta_mtl » Mon Jan 22, 2018 11:55 am

The "dropbox_uploader.sh" bug has been fixed on github, so I have re-updated my instructions to load the latest version from there.

Again, remove your original by doing:
rm -rf /dropbox

Then repeat the instructions for configuring "dropbox_uploader.sh".
Top

ruinzaO
Posts: 4
Joined: Fri Sep 22, 2017 11:05 am

Os: Ubuntu 15x
Web: apache + nginx
Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by ruinzaO » Wed Jan 24, 2018 2:16 pm

vesta_mtl wrote:The "dropbox_uploader.sh" bug has been fixed on github, so I have re-updated my instructions to load the latest version from there.

Again, remove your original by doing:
rm -rf /dropbox

Then repeat the instructions for configuring "dropbox_uploader.sh".
100%
Thank you my friend!
Top

YellowJuice
Posts: 7
Joined: Tue Jul 18, 2017 1:39 am
Contact:
Contact YellowJuice
Website

Os: Debian 7x
Web: apache + nginx
Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by YellowJuice » Thu Feb 08, 2018 1:32 pm

Thanks, that's a great solution for simple backups.
Top

n0x
Posts: 16
Joined: Sat Apr 07, 2018 10:30 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by n0x » Tue Apr 10, 2018 9:33 am

Really nice script and solution for remote backup storage.

Running nicely on the VM now :)
Top

fifthfloor
Posts: 3
Joined: Sat Mar 03, 2018 11:23 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by fifthfloor » Sun Jul 22, 2018 12:19 am

I get the following errors with the attached set-up. Running the attached via the command line works, but when its done as a cron it gets one of these errors. Im no expert so any help would be appreciated. I'm sure its something stupid I'm doing. See the following:

https://imgur.com/qzyJriN

(Cron Daemon) <admin@serverhost>
3:15 PM (1 hour ago)
to me

/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file

This happens if I leave the quotes in "[%Y-%m-%d %H:%M:%S]" as seen in the attached. If I remove the quotes I get:

(Cron Daemon) <admin@serverhost>
5:02 PM (14 minutes ago)
to me

sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
Top

vesta_mtl
Posts: 70
Joined: Wed Dec 21, 2016 2:08 pm

Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by vesta_mtl » Sun Jul 22, 2018 10:46 am

It seems that the code you copied may have replaced a quote mark with a tick mark (has an angle to it). Double check that.
Top

fifthfloor
Posts: 3
Joined: Sat Mar 03, 2018 11:23 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Upload Vesta user backups to Dropbox automatically daily
  • Quote

Post by fifthfloor » Sun Jul 22, 2018 5:45 pm

Yeah, that was the first thing I tried. I typed out the whole thing to make sure.

Also note: Running the command from a ssh session works with the same copied line. It just errors as a cron job.
Top


Post Reply
  • Print view

30 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

Return to “3rd Party Software”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password