Changes

Jump to navigation Jump to search
1,099 bytes added ,  15:03, 11 March 2018
no edit summary
Line 84: Line 84:     
For Dropbox I had to run rclone on a desktop with a browser, giving permission for rclone to be allowed to connect to Dropbox and then copy and paste a key string across to the smeserver.
 
For Dropbox I had to run rclone on a desktop with a browser, giving permission for rclone to be allowed to connect to Dropbox and then copy and paste a key string across to the smeserver.
 +
 +
=== Useage ===
 +
 +
Here is the shell script that I developed and tested to see if it would work:
 +
 +
<code>
 +
!/bin/sh
 +
signal-event pre-backup
 +
cd /
 +
rclone mkdir smeserver-dropbox:backup
 +
rclone mkdir smeserver-dropbox:backup/smeserver
 +
rclone mkdir smeserver-dropbox:backup/smeserver/etc/e-smith/templates-user-custom
 +
rclone mkdir smeserver-dropbox:backup/smeserver/etc/e-smith/templates-custom
 +
rclone mkdir smeserver-dropbox:backup/smeserver/home
 +
rclone mkdir smeserver-dropbox:backup/smeserver/ssh
 +
rclone mkdir smeserver-dropbox:backup/smeserver/root
 +
rclone copy -v  / smeserver-dropbox:backup/smeserver --files-from backup-files-list-rclone
 +
rclone copy -v  "etc/e-smith/templates-custom/" "smeserver-dropbox:backup/smeserver/etc/e-smith/templates-custom/"
 +
rclone copy -v  "etc/e-smith/templates-user-custom/" "smeserver-dropbox:backup/smeserver/etc/e-smith/templates-user-custom/"
 +
rclone copy -v  etc/ssh smeserver-dropbox:backup/smeserver/ssh
 +
rclone copy -v  root smeserver-dropbox:backup/smeserver/root
 +
rclone copy -v  home/e-smith/ smeserver-dropbox:backup/smeserver/home/ --exclude "tmp/**"
 +
</code>
 +
 +
    
=== Uninstall ===
 
=== Uninstall ===

Navigation menu