One touch, complete, offsite, set-it-and-forget-it backup solution


#42

Hi,

Thanks for the answer.

I just tried but it’s installing a lot of items – maybe this is the way to do a brand new server. I have a working server with active sites built with easy engine, and I want to try your script to back them up and then reinstall them as a test on a new machine.

I’m wondering if I need to reinstall ee, add phpmyadmin, and re-configure all these tools or not. What if I just want to keep the machine as it is, but just be able to back up all the sites to s3 and then restore them to another machine? Would it be better to run the script but NOT elect to install the full ee stack/phpmyadmin? I don’t really need phpmyadmin since I use a local tool and would rather not have the vulnerability present, and i had already configured mail, etc. What do you recommend for this situation?

Thanks


#43

After the previous command you suggested, after a lot of items installed, the last lines of the output are:

Setting up duplicity (0.7.17-0ubuntu0ppa1353~ubuntu16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...

Finished installing dependencies.

/root/openspace42/bash-functions/functions/install_duplicity: line 18: pip: command not found
root@server:~#

So I suspect it didn’t finish. Thanks!


#44

The script installs only what’s necessary unless you answer yes to also install the full stack. If you answer no, it’ll only install or re-install EE [which is a completely neutral process if you have it already installed, meaning it won’t change anything in your system, nor touch your sites in any way], and the required components.

In short, answer no at the full stack prompt and you’ll have a minimal installation with your current programs and data not affected in any way.

Are you running the command as I previously mentioned, like this: bash raptor/setup -be ?


#45

Thanks for the explanation. That helps understand the process a lot. Yes, I did it with the -be options. Let me know if there’s any other thing I can try.


#46

Cool, let me know if it keeps working over time. Definitely try running a backup manually if you have a chance and let me know.


#47

@chi_soul are you still having issues with mysql?


#48

hi @nickksno, Sorry, I meant, it did not work. Last time I tried was the time I described above, where I used the -be flags and got the error at the end. I haven’t gotten it to work yet. Error was:

/root/openspace42/bash-functions/functions/install_duplicity: line 18: pip: command not found

#49

Please post the entire output, from when you invoke the command to the error response.


#50

Here it is:

root@ss:~# raptor/setup -be

Using bleeding-edge bash-functions as per | -b |.

Using bleeding-edge repo code as per | -e |.

Cloning into 'bash-functions'...
remote: Counting objects: 725, done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 725 (delta 48), reused 51 (delta 25), pack-reused 648
Receiving objects: 100% (725/725), 121.71 KiB | 0 bytes/s, done.
Resolving deltas: 100% (487/487), done.
Checking connectivity... done.

- * - !!! - * - !!! - * - !!! - * - !!! - * - !!! - * - !!! - * - !!! - * - !!! -

Installing bleeding-edge version of raptor up to latest git commit as per | -e |.

- * - !!! - * - !!! - * - !!! - * - !!! - * - !!! - * - !!! - * - !!! - * - !!! -

Initiating install...

Now [re-]installing and updating EasyEngine...

Executing apt-get update, please wait...
Update EasyEngine to 3.8.1 (y/n): y
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.1ubuntu2).
build-essential set to manually installed.
gzip is already the newest version (1.6-4ubuntu1).
python3 is already the newest version (3.5.1-3).
python3-dev is already the newest version (3.5.1-3).
python3-setuptools is already the newest version (20.7.0-1).
sqlite3 is already the newest version (3.11.0-1ubuntu1).
curl is already the newest version (7.47.0-1ubuntu2.8).
git is already the newest version (1:2.7.4-0ubuntu1.4).
python3-apt is already the newest version (1.1.0~beta1ubuntu0.16.04.1).
software-properties-common is already the newest version (0.96.20.7).
tar is already the newest version (1.28-2.1ubuntu0.1).
The following packages were automatically installed and are no longer required:
  libluajit-5.1-2 libluajit-5.1-common libssl1.0.2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cloning EasyEngine, please wait...
Installing EasyEngine, please wait...
running install
Checking .pth file support in /usr/local/lib/python3.5/dist-packages/
/usr/bin/python3 -E -c pass
TEST PASSED: /usr/local/lib/python3.5/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating ee.egg-info
writing namespace_packages to ee.egg-info/namespace_packages.txt
writing ee.egg-info/PKG-INFO
writing top-level names to ee.egg-info/top_level.txt
writing requirements to ee.egg-info/requires.txt
writing entry points to ee.egg-info/entry_points.txt
writing dependency_links to ee.egg-info/dependency_links.txt
writing manifest file 'ee.egg-info/SOURCES.txt'
reading manifest file 'ee.egg-info/SOURCES.txt'
writing manifest file 'ee.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/ee
copying ee/__init__.py -> build/lib/ee
creating build/lib/ee/utils
copying ee/utils/test.py -> build/lib/ee/utils
copying ee/utils/__init__.py -> build/lib/ee/utils
creating build/lib/ee/cli
copying ee/cli/bootstrap.py -> build/lib/ee/cli
copying ee/cli/__init__.py -> build/lib/ee/cli
copying ee/cli/main.py -> build/lib/ee/cli
creating build/lib/ee/core
copying ee/core/sendmail.py -> build/lib/ee/core
copying ee/core/exc.py -> build/lib/ee/core
copying ee/core/mysql.py -> build/lib/ee/core
copying ee/core/logwatch.py -> build/lib/ee/core
copying ee/core/domainvalidate.py -> build/lib/ee/core
copying ee/core/git.py -> build/lib/ee/core
copying ee/core/addswap.py -> build/lib/ee/core
copying ee/core/extract.py -> build/lib/ee/core
copying ee/core/__init__.py -> build/lib/ee/core
copying ee/core/variables.py -> build/lib/ee/core
copying ee/core/nginxhashbucket.py -> build/lib/ee/core
copying ee/core/database.py -> build/lib/ee/core
copying ee/core/fileutils.py -> build/lib/ee/core
copying ee/core/shellexec.py -> build/lib/ee/core
copying ee/core/cron.py -> build/lib/ee/core
copying ee/core/aptget.py -> build/lib/ee/core
copying ee/core/services.py -> build/lib/ee/core
copying ee/core/download.py -> build/lib/ee/core
copying ee/core/logging.py -> build/lib/ee/core
copying ee/core/apt_repo.py -> build/lib/ee/core
copying ee/core/checkfqdn.py -> build/lib/ee/core
copying ee/core/sslutils.py -> build/lib/ee/core
creating build/lib/ee/cli/plugins
copying ee/cli/plugins/update.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/stack_upgrade.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/log.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/__init__.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/info.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/secure.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/import_slow_log.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/site_functions.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/stack_migrate.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/stack.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/clean.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/sync.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/stack_services.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/site.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/sitedb.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/models.py -> build/lib/ee/cli/plugins
copying ee/cli/plugins/debug.py -> build/lib/ee/cli/plugins
creating build/lib/ee/cli/ext
copying ee/cli/ext/__init__.py -> build/lib/ee/cli/ext
copying ee/cli/ext/ee_outputhandler.py -> build/lib/ee/cli/ext
creating build/lib/ee/cli/controllers
copying ee/cli/controllers/__init__.py -> build/lib/ee/cli/controllers
copying ee/cli/controllers/base.py -> build/lib/ee/cli/controllers
creating build/lib/ee/cli/templates
copying ee/cli/templates/__init__.py -> build/lib/ee/cli/templates
creating build/lib/tests
creating build/lib/tests/cli
copying tests/cli/test_info.py -> build/lib/tests/cli
copying tests/cli/a_test_site_disable.py -> build/lib/tests/cli
copying tests/cli/__init__.py -> build/lib/tests/cli
copying tests/cli/9_test_site_enable.py -> build/lib/tests/cli
copying tests/cli/95_test_site_show.py -> build/lib/tests/cli
copying tests/cli/test_site_delete.py -> build/lib/tests/cli
copying tests/cli/2_test_stack_services_start.py -> build/lib/tests/cli
copying tests/cli/test_stack_remove.py -> build/lib/tests/cli
copying tests/cli/93_test_site_list.py -> build/lib/tests/cli
copying tests/cli/97_test_site_update.py -> build/lib/tests/cli
copying tests/cli/8_test_site_create.py -> build/lib/tests/cli
copying tests/cli/test_debug.py -> build/lib/tests/cli
copying tests/cli/test_stack_purge.py -> build/lib/tests/cli
copying tests/cli/test_clean.py -> build/lib/tests/cli
copying tests/cli/91_test_site_info.py -> build/lib/tests/cli
copying tests/cli/5_test_stack_services_restart.py -> build/lib/tests/cli
copying tests/cli/3_test_stack_services_status.py -> build/lib/tests/cli
copying tests/cli/13_test_stack.py -> build/lib/tests/cli
copying tests/cli/4_test_stack_services_stop.py -> build/lib/tests/cli
copying tests/cli/test_secure.py -> build/lib/tests/cli
creating build/lib/tests/core
copying tests/core/__init__.py -> build/lib/tests/core
creating build/lib/tests/cli/plugins
copying tests/cli/plugins/__init__.py -> build/lib/tests/cli/plugins
copying tests/cli/plugins/test_example.py -> build/lib/tests/cli/plugins
creating build/lib/tests/cli/ext
copying tests/cli/ext/__init__.py -> build/lib/tests/cli/ext
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/ee
creating build/bdist.linux-x86_64/egg/ee/utils
copying build/lib/ee/utils/test.py -> build/bdist.linux-x86_64/egg/ee/utils
copying build/lib/ee/utils/__init__.py -> build/bdist.linux-x86_64/egg/ee/utils
copying build/lib/ee/__init__.py -> build/bdist.linux-x86_64/egg/ee
creating build/bdist.linux-x86_64/egg/ee/cli
creating build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/update.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/stack_upgrade.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/log.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/__init__.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/info.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/secure.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/import_slow_log.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/site_functions.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/stack_migrate.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/stack.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/clean.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/sync.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/stack_services.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/site.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/sitedb.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/models.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
copying build/lib/ee/cli/plugins/debug.py -> build/bdist.linux-x86_64/egg/ee/cli/plugins
creating build/bdist.linux-x86_64/egg/ee/cli/ext
copying build/lib/ee/cli/ext/__init__.py -> build/bdist.linux-x86_64/egg/ee/cli/ext
copying build/lib/ee/cli/ext/ee_outputhandler.py -> build/bdist.linux-x86_64/egg/ee/cli/ext
creating build/bdist.linux-x86_64/egg/ee/cli/controllers
copying build/lib/ee/cli/controllers/__init__.py -> build/bdist.linux-x86_64/egg/ee/cli/controllers
copying build/lib/ee/cli/controllers/base.py -> build/bdist.linux-x86_64/egg/ee/cli/controllers
copying build/lib/ee/cli/bootstrap.py -> build/bdist.linux-x86_64/egg/ee/cli
copying build/lib/ee/cli/__init__.py -> build/bdist.linux-x86_64/egg/ee/cli
copying build/lib/ee/cli/main.py -> build/bdist.linux-x86_64/egg/ee/cli
creating build/bdist.linux-x86_64/egg/ee/cli/templates
copying build/lib/ee/cli/templates/__init__.py -> build/bdist.linux-x86_64/egg/ee/cli/templates
creating build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/sendmail.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/exc.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/mysql.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/logwatch.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/domainvalidate.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/git.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/addswap.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/extract.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/__init__.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/variables.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/nginxhashbucket.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/database.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/fileutils.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/shellexec.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/cron.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/aptget.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/services.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/download.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/logging.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/apt_repo.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/checkfqdn.py -> build/bdist.linux-x86_64/egg/ee/core
copying build/lib/ee/core/sslutils.py -> build/bdist.linux-x86_64/egg/ee/core
creating build/bdist.linux-x86_64/egg/tests
creating build/bdist.linux-x86_64/egg/tests/cli
creating build/bdist.linux-x86_64/egg/tests/cli/plugins
copying build/lib/tests/cli/plugins/__init__.py -> build/bdist.linux-x86_64/egg/tests/cli/plugins
copying build/lib/tests/cli/plugins/test_example.py -> build/bdist.linux-x86_64/egg/tests/cli/plugins
creating build/bdist.linux-x86_64/egg/tests/cli/ext
copying build/lib/tests/cli/ext/__init__.py -> build/bdist.linux-x86_64/egg/tests/cli/ext
copying build/lib/tests/cli/test_info.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/a_test_site_disable.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/__init__.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/9_test_site_enable.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/95_test_site_show.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/test_site_delete.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/2_test_stack_services_start.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/test_stack_remove.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/93_test_site_list.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/97_test_site_update.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/8_test_site_create.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/test_debug.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/test_stack_purge.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/test_clean.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/91_test_site_info.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/5_test_stack_services_restart.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/3_test_stack_services_status.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/13_test_stack.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/4_test_stack_services_stop.py -> build/bdist.linux-x86_64/egg/tests/cli
copying build/lib/tests/cli/test_secure.py -> build/bdist.linux-x86_64/egg/tests/cli
creating build/bdist.linux-x86_64/egg/tests/core
copying build/lib/tests/core/__init__.py -> build/bdist.linux-x86_64/egg/tests/core
byte-compiling build/bdist.linux-x86_64/egg/ee/utils/test.py to test.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/utils/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/update.py to update.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/stack_upgrade.py to stack_upgrade.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/log.py to log.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/info.py to info.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/secure.py to secure.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/import_slow_log.py to import_slow_log.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/site_functions.py to site_functions.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/stack_migrate.py to stack_migrate.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/stack.py to stack.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/clean.py to clean.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/sync.py to sync.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/stack_services.py to stack_services.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/site.py to site.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/sitedb.py to sitedb.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/models.py to models.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/plugins/debug.py to debug.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/ext/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/ext/ee_outputhandler.py to ee_outputhandler.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/controllers/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/controllers/base.py to base.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/bootstrap.py to bootstrap.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/main.py to main.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/cli/templates/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/sendmail.py to sendmail.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/exc.py to exc.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/mysql.py to mysql.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/logwatch.py to logwatch.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/domainvalidate.py to domainvalidate.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/git.py to git.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/addswap.py to addswap.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/extract.py to extract.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/variables.py to variables.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/nginxhashbucket.py to nginxhashbucket.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/database.py to database.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/fileutils.py to fileutils.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/shellexec.py to shellexec.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/cron.py to cron.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/aptget.py to aptget.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/services.py to services.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/download.py to download.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/logging.py to logging.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/apt_repo.py to apt_repo.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/checkfqdn.py to checkfqdn.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/ee/core/sslutils.py to sslutils.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/plugins/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/plugins/test_example.py to test_example.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/ext/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/test_info.py to test_info.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/a_test_site_disable.py to a_test_site_disable.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/9_test_site_enable.py to 9_test_site_enable.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/95_test_site_show.py to 95_test_site_show.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/test_site_delete.py to test_site_delete.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/2_test_stack_services_start.py to 2_test_stack_services_start.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/test_stack_remove.py to test_stack_remove.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/93_test_site_list.py to 93_test_site_list.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/97_test_site_update.py to 97_test_site_update.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/8_test_site_create.py to 8_test_site_create.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/test_debug.py to test_debug.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/test_stack_purge.py to test_stack_purge.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/test_clean.py to test_clean.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/91_test_site_info.py to 91_test_site_info.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/5_test_stack_services_restart.py to 5_test_stack_services_restart.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/3_test_stack_services_status.py to 3_test_stack_services_status.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/13_test_stack.py to 13_test_stack.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/4_test_stack_services_stop.py to 4_test_stack_services_stop.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/cli/test_secure.py to test_secure.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/tests/core/__init__.py to __init__.cpython-35.pyc
installing package data to build/bdist.linux-x86_64/egg

(continued in next post)


#51

(continued from previous post)

running install_data
copying config/ee.conf -> /etc/ee
copying config/plugins.d/site.conf -> /etc/ee/plugins.d
copying config/plugins.d/stack.conf -> /etc/ee/plugins.d
copying config/plugins.d/secure.conf -> /etc/ee/plugins.d
copying config/plugins.d/log.conf -> /etc/ee/plugins.d
copying config/plugins.d/clean.conf -> /etc/ee/plugins.d
copying config/plugins.d/update.conf -> /etc/ee/plugins.d
copying config/plugins.d/debug.conf -> /etc/ee/plugins.d
copying config/plugins.d/info.conf -> /etc/ee/plugins.d
copying config/plugins.d/import_slow_log.conf -> /etc/ee/plugins.d
copying ee/cli/templates/redis-php7.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/fastcgi.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/pagespeed-global.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/w3tc-php7.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/vimbadmin.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/php-hhvm.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/pagespeed-common.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/ee-plus.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/redis-hhvm.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/php7.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/wpsc-hhvm.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/info_mysql.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/auth-sql-conf.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/upstream.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/wpfc-hhvm.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/default-sieve.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/acl.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/virtual_alias_maps.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/dovecot-sql-conf.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/virtualconf-php7.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/wpsc-php7.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/nginx-core.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/redis.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/wpsc.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/locations.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/info_nginx.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/wpcommon-php7.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/php-fpm.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/wpcommon.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/wpfc-php7.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/anemometer.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/info_php.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/locations-php7.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/dovecot.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/w3tc.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/virtual_domains_maps.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/php.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/wpsubdir.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/15-content_filter_mode.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/virtualconf.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/blockips.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/siteinfo.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/wpfc.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/w3tc-hhvm.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/virtual_mailbox_maps.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/22222.mustache -> /usr/lib/ee/templates
copying ee/cli/templates/50-user.mustache -> /usr/lib/ee/templates
copying config/bash_completion.d/ee_auto.rc -> /etc/bash_completion.d/
copying docs/ee.8 -> /usr/share/man/man8/
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying ee.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ee.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ee.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ee.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ee.egg-info/namespace_packages.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ee.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ee.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ee.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/ee-3.8.1-py3.5.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing ee-3.8.1-py3.5.egg
creating /usr/local/lib/python3.5/dist-packages/ee-3.8.1-py3.5.egg
Extracting ee-3.8.1-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Removing ee 3.7.5 from easy-install.pth file
Adding ee 3.8.1 to easy-install.pth file
Installing ee script to /usr/local/bin

Installed /usr/local/lib/python3.5/dist-packages/ee-3.8.1-py3.5.egg
Processing dependencies for ee==3.8.1
Searching for SQLAlchemy==1.2.7
Best match: SQLAlchemy 1.2.7
Processing SQLAlchemy-1.2.7-py3.5-linux-x86_64.egg
SQLAlchemy 1.2.7 is already the active version in easy-install.pth

Using /usr/local/lib/python3.5/dist-packages/SQLAlchemy-1.2.7-py3.5-linux-x86_64.egg
Searching for sh==1.12.14
Best match: sh 1.12.14
Processing sh-1.12.14-py3.5.egg
sh 1.12.14 is already the active version in easy-install.pth

Using /usr/local/lib/python3.5/dist-packages/sh-1.12.14-py3.5.egg
Searching for psutil==3.1.1
Best match: psutil 3.1.1
Processing psutil-3.1.1-py3.5-linux-x86_64.egg
psutil 3.1.1 is already the active version in easy-install.pth

Using /usr/local/lib/python3.5/dist-packages/psutil-3.1.1-py3.5-linux-x86_64.egg
Searching for PyMySQL==0.8.0
Best match: PyMySQL 0.8.0
Processing PyMySQL-0.8.0-py3.5.egg
PyMySQL 0.8.0 is already the active version in easy-install.pth

Using /usr/local/lib/python3.5/dist-packages/PyMySQL-0.8.0-py3.5.egg
Searching for pynginxconfig==0.3.4
Best match: pynginxconfig 0.3.4
Processing pynginxconfig-0.3.4-py3.5.egg
pynginxconfig 0.3.4 is already the active version in easy-install.pth

Using /usr/local/lib/python3.5/dist-packages/pynginxconfig-0.3.4-py3.5.egg
Searching for python-apt==1.1.0b1+ubuntu0.16.4.1
Best match: python-apt 1.1.0b1+ubuntu0.16.4.1
python-apt 1.1.0b1+ubuntu0.16.4.1 is already the active version in easy-install.pth

Using /usr/lib/python3/dist-packages
Searching for pystache==0.5.4
Best match: pystache 0.5.4
Processing pystache-0.5.4-py3.5.egg
pystache 0.5.4 is already the active version in easy-install.pth
Installing pystache-test script to /usr/local/bin
Installing pystache script to /usr/local/bin

Using /usr/local/lib/python3.5/dist-packages/pystache-0.5.4-py3.5.egg
Searching for cement==2.4.0
Best match: cement 2.4.0
Processing cement-2.4.0-py3.5.egg
cement 2.4.0 is already the active version in easy-install.pth

Using /usr/local/lib/python3.5/dist-packages/cement-2.4.0-py3.5.egg
Finished processing dependencies for ee==3.8.1
Updating Nginx configuration, please wait...
Updating WP-CLI version to resolve compatibility issue.
Synchronizing ee database, please wait...

For EasyEngine (ee) auto completion, run the following command

source /etc/bash_completion.d/ee_auto.rc

EasyEngine (ee) installed/updated successfully
EasyEngine (ee) help: http://docs.rtcamp.com/easyengine/

Downloading update script        [Done]
updating EasyEngine, please wait...
Executing apt-get update, please wait...
[ Sat Jun  9 07:39:02 UTC 2018 ] You already have EasyEngine 3.8.1, exit status =  1


Skipping adding existing rule
Skipping adding existing rule (v6)
Skipping adding existing rule
Skipping adding existing rule (v6)

Also install full EasyEngine stack and PhpMyAdmin? (Y/n): n

Ok, skipping full EE stack installation...

Finished installing EasyEngine.

Now installing the duplicity backup utility...

Now installing dependencies...

Hit:1 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Hit:4 http://fi.archive.ubuntu.com/ubuntu xenial InRelease
Hit:5 http://fi.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:6 http://fi.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:7 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04  InRelease
Hit:8 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04  Release
Hit:9 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-properties-common is already the newest version (0.96.20.7).
The following packages were automatically installed and are no longer required:
  libluajit-5.1-2 libluajit-5.1-common libssl1.0.2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Finished installing dependencies.

gpg: keyring `/tmp/tmp8qe6m37n/secring.gpg' created
gpg: keyring `/tmp/tmp8qe6m37n/pubring.gpg' created
gpg: requesting key 7A86F4A2 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp8qe6m37n/trustdb.gpg: trustdb created
gpg: key 7A86F4A2: public key "Launchpad duplicity-team" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

Now installing dependencies...

Hit:1 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial InRelease
Hit:2 http://fi.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://fi.archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:4 http://ppa.launchpad.net/duplicity-team/ppa/ubuntu xenial InRelease [17.5 kB]
Hit:5 http://fi.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Ign:7 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04  InRelease
Hit:8 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04  Release
Hit:9 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:10 http://ppa.launchpad.net/duplicity-team/ppa/ubuntu xenial/main amd64 Packages [576 B]
Hit:11 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial InRelease
Get:12 http://ppa.launchpad.net/duplicity-team/ppa/ubuntu xenial/main i386 Packages [572 B]
Get:13 http://ppa.launchpad.net/duplicity-team/ppa/ubuntu xenial/main Translation-en [420 B]
Fetched 19.1 kB in 0s (39.8 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libluajit-5.1-2 libluajit-5.1-common libssl1.0.2
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  librsync1 python-fasteners python-monotonic python-pexpect python-ptyprocess
  python-six
Suggested packages:
  ncftp python-boto python-paramiko python-kerberos python-pexpect-doc
The following NEW packages will be installed:
  duplicity librsync1 python-fasteners python-monotonic python-pexpect
  python-ptyprocess python-six
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 299 kB of archives.
After this operation, 1401 kB of additional disk space will be used.
Get:1 http://fi.archive.ubuntu.com/ubuntu xenial/main amd64 librsync1 amd64 0.9.7-10 [38.2 kB]
Get:2 http://fi.archive.ubuntu.com/ubuntu xenial/main amd64 python-monotonic all 0.6-2 [4974 B]
Get:3 http://fi.archive.ubuntu.com/ubuntu xenial/main amd64 python-six all 1.10.0-3 [10.9 kB]
Get:4 http://fi.archive.ubuntu.com/ubuntu xenial/main amd64 python-fasteners all 0.12.0-2ubuntu1 [13.5 kB]
Get:5 http://fi.archive.ubuntu.com/ubuntu xenial/universe amd64 python-ptyprocess all 0.5-1 [12.9 kB]
Get:6 http://fi.archive.ubuntu.com/ubuntu xenial/universe amd64 python-pexpect all 4.0.1-1 [40.5 kB]
Get:7 http://ppa.launchpad.net/duplicity-team/ppa/ubuntu xenial/main amd64 duplicity amd64 0.7.17-0ubuntu0ppa1353~ubuntu16.04.1 [178 kB]
Fetched 299 kB in 0s (3827 kB/s)
Selecting previously unselected package librsync1:amd64.
(Reading database ... 73746 files and directories currently installed.)
Preparing to unpack .../librsync1_0.9.7-10_amd64.deb ...
Unpacking librsync1:amd64 (0.9.7-10) ...
Selecting previously unselected package python-monotonic.
Preparing to unpack .../python-monotonic_0.6-2_all.deb ...
Unpacking python-monotonic (0.6-2) ...
Selecting previously unselected package python-six.
Preparing to unpack .../python-six_1.10.0-3_all.deb ...
Unpacking python-six (1.10.0-3) ...
Selecting previously unselected package python-fasteners.
Preparing to unpack .../python-fasteners_0.12.0-2ubuntu1_all.deb ...
Unpacking python-fasteners (0.12.0-2ubuntu1) ...
Selecting previously unselected package python-ptyprocess.
Preparing to unpack .../python-ptyprocess_0.5-1_all.deb ...
Unpacking python-ptyprocess (0.5-1) ...
Selecting previously unselected package python-pexpect.
Preparing to unpack .../python-pexpect_4.0.1-1_all.deb ...
Unpacking python-pexpect (4.0.1-1) ...
Selecting previously unselected package duplicity.
Preparing to unpack .../duplicity_0.7.17-0ubuntu0ppa1353~ubuntu16.04.1_amd64.deb ...
Unpacking duplicity (0.7.17-0ubuntu0ppa1353~ubuntu16.04.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up librsync1:amd64 (0.9.7-10) ...
Setting up python-monotonic (0.6-2) ...
Setting up python-six (1.10.0-3) ...
Setting up python-fasteners (0.12.0-2ubuntu1) ...
Setting up python-ptyprocess (0.5-1) ...
Setting up python-pexpect (4.0.1-1) ...
Setting up duplicity (0.7.17-0ubuntu0ppa1353~ubuntu16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...

Finished installing dependencies.

/root/openspace42/bash-functions/functions/install_duplicity: line 18: pip: command not found
root@ss:~#

#52

Hi again. Please post the entire output of this new command:

bash -x raptor/setup -be


#53

Thank you. Whatever you did has allowed me to get a backup encryption phrase now.

I removed the raptor folder with rm -r openspace42/raptor and then tried again with bash raptor/setup -be … but I am still having the same issue with mysql. I’m not sure if this is because my database is on amazon RDS or not?

here is the entire output from the bash -x raptor/setup -be command

Any help you can offer would be greatly appreciated.

Thanks in advance


#54

CAn you add google drive or dropbox? There are scripts for handling the upload part easily.


#55

@sshanky any news?

@chi_soul can you please bash -x openspace42/raptor/tools/raptor-backup and post the entire output?

@partymonger yes I know and also have been asked in the past, but right now the focus is more on stability than implementing new functionality, as important as ideas like yours might be. If you are willing to research and implement a bare-bones approach to db or gd I’d be happy to take a look and fix up the bash code around that.

Thank you all


#56

here is the entire output from the bash -x openspace42/raptor/tools/raptor-backup command

I notice that in this file the original easyengine username [store_G9g5Tfp2mV] is listed, then on the next line my correct username [from wp-config.php] is listed too.

This also happens with my password. The incorrect, and original easyengine password [GSlih7gmq2WyMZE] appears, and then my correct password is on the next line.

This also happens with my database. The incorrect, and original easyengine database [store_MY-DOMAIN_com] appears, and then my correct password [chi_soul_store_MY-DOMAIN_com] is on the next line.

I do not know why the original easyengine username and password appear because I edited the mysql credientials in the /etc/mysql/conf.d/my.cnf file with my amazon RDS info.

Below is the part of the bash -x openspace42/raptor/tools/raptor-backup file that I noticed. Click the link above for the whole file.

Thanks again.

++ grep DB_NAME ++ cat /var/www/store.MY-DOMAIN.com/wp-config.php

  • WPDBNAME=‘store_MY-DOMAIN_com chi_soul_store_MY-DOMAIN_com’ ++ cut -d ’ -f 4 ++ grep DB_USER ++ cat /var/www/store.MY-DOMAIN.com/wp-config.php
  • WPDBUSER=‘store_G9g5Tfp2mV MY-REAL-USERNAME’ ++ cut -d ’ -f 4 ++ grep DB_PASSWORD ++ cat /var/www/store.MY-DOMAIN.com/wp-config.php
  • WPDBPASS=‘GSlih7gmq2WyMZE MY-REAL-PASSWORD’
  • /usr/bin/mysqldump -u store_G9g5Tfp2mV MY-REAL-USERNAME -pGSlih7gmq2WyMZE ‘MY-REAL-PASSWORD’ store_MY-DOMAIN_com chi_soul_store_MY-DOMAIN_com mysqldump: Got error: 1045: “Access denied for user ‘store_G9g5Tfp2mV’@‘MY-IP-ADDRESS’ (using password: YES)” when trying to connect

#57

@nikksno - Thanks man. These are the scripts you can use. They have all instructions there. Basically where this will differ is the upload and download part. These scripts are always updated (using since 2014). And when there is an update, its only a matter of replacing the script file. The configurations like which folder to upload to and other specifics like api auth are stored in another file. So dont need to change unless DB or GD change api again.

I had documented it here in this guide -> https://www.lowendtalk.com/discussion/33507/completely-automate-backing-up-to-dropbox-databases-files#latest

Its still working fine with minor update of the upload script (simply replaced).


#58

Hi @nikksno got some time to try again. I used the same machine, used the command you requested. Here’s the output (screen cleared a few times at the beginning but I think most of it is here):

It appears you have a previous incomplete installation of raptor.

Either you intentionally aborted the install or the script got somehow terminated before it finished.

In either case, if you're having any issues, simply file an issue report at:

 | https://github.com/openspace42/raptor/issues |

Thank you in advance!

[press enter to continue reading...]
Initiating install...

Now [re-]installing and updating EasyEngine...

Executing apt-get update, please wait...
[ Fri Jun 15 05:36:21 UTC 2018 ] You already have EasyEngine 3.8.1, exit status =  1

Downloading update script        [Done]
updating EasyEngine, please wait...
Executing apt-get update, please wait...
[ Fri Jun 15 05:36:27 UTC 2018 ] You already have EasyEngine 3.8.1, exit status =  1


Skipping adding existing rule
Skipping adding existing rule (v6)
Skipping adding existing rule
Skipping adding existing rule (v6)

Also install full EasyEngine stack and PhpMyAdmin? (Y/n): n

Ok, skipping full EE stack installation...

Finished installing EasyEngine.

Now installing the duplicity backup utility...

Now installing dependencies...

Hit:1 http://fi.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://fi.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://fi.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:4 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial InRelease
Hit:5 http://ppa.launchpad.net/duplicity-team/ppa/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Ign:7 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04  InRelease
Hit:8 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04  Release
Hit:9 http://security.ubuntu.com/ubuntu xenial-security InRelease
0% [3 InRelease gpgv 107 kB] [Waiting for headers]
Hit:10 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-properties-common is already the newest version (0.96.20.7).
The following packages were automatically installed and are no longer required:
  libluajit-5.1-2 libluajit-5.1-common libssl1.0.2
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

Finished installing dependencies.

gpg: keyring `/tmp/tmpm7k9x6j2/secring.gpg' created
gpg: keyring `/tmp/tmpm7k9x6j2/pubring.gpg' created
gpg: requesting key 7A86F4A2 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpm7k9x6j2/trustdb.gpg: trustdb created
gpg: key 7A86F4A2: public key "Launchpad duplicity-team" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

Now installing dependencies...

Hit:1 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial InRelease
Hit:2 http://fi.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://fi.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://fi.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:5 http://ppa.launchpad.net/duplicity-team/ppa/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:8 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04  InRelease
Hit:9 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04  Release
Hit:10 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
duplicity is already the newest version (0.7.17-0ubuntu0ppa1353~ubuntu16.04.1).
The following packages were automatically installed and are no longer required:
  libluajit-5.1-2 libluajit-5.1-common libssl1.0.2
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

Finished installing dependencies.

/root/openspace42/bash-functions/functions/install_duplicity: line 18: pip: command not found
root@upcloud1:~#

#59

@partymonger awesome thank you. I’ll try and implement them whenever I have a minute.

Thanks again


#60

@sshanky and @chi_soul could you PM me with SSH access to your respective machines if that’s an option for you?

I’m having trouble understanding what’s going on. Thanks


#61

Hi! Finally I’ve got some time to setup your backup script. And it’s working like a charm! Thanks a lot for that!!! I have tested exclusions, it is also working except for subdomain. If I have subdomain site on exclusion list than script is skipping main domain website too. Saying that this site is on exclusion list