Changes

From SME Server
Jump to navigationJump to search
43 bytes added ,  06:11, 7 November 2021
no edit summary
Line 33: Line 33:  
Current cloud providers supported are:
 
Current cloud providers supported are:
   −
    Amazon Drive
+
 
    Amazon S3
+
* Alibaba Cloud (Aliyun) Object Storage System (OSS)
    Backblaze B2
+
* Amazon Drive   (See note)
    Box
+
* Amazon S3
    Ceph
+
* Backblaze B2
    DigitalOcean Spaces
+
* Box
    Dreamhost
+
* Ceph
    Dropbox
+
* DigitalOcean Spaces
    FTP
+
* Dreamhost
    Google Cloud Storage
+
* Dropbox
    Google Drive
+
* FTP
    HTTP
+
* Google Cloud Storage
    Hubic
+
* Google Drive
    Memset Memstore
+
* HTTP
    Microsoft Azure Blob Storage
+
* Hubic
    Microsoft OneDrive
+
* Jottacloud
    Minio
+
* IBM COS S3
    Nextloud
+
* Koofr
    OVH
+
* Memset Memstore
    Openstack Swift
+
* Mega
    Oracle Cloud Storage
+
* Microsoft Azure Blob Storage
    Ownloud
+
* Microsoft OneDrive
    pCloud
+
* Minio
    put.io
+
* Nextcloud
    QingStor
+
* OVH
    Rackspace Cloud Files
+
* OpenDrive
    SFTP
+
* Openstack Swift
    Wasabi
+
* Oracle Cloud Storage
    WebDAV
+
* ownCloud
    Yandex Disk
+
* pCloud
    The local filesystem
+
* put.io
 
+
* QingStor
 +
* Rackspace Cloud Files
 +
* Scaleway
 +
* SFTP
 +
* Wasabi
 +
* WebDAV
 +
* Yandex Disk
 +
* The local filesystem
 
I have only tested it against Dropbox.
 
I have only tested it against Dropbox.
   Line 71: Line 78:  
Rclone is made available as a statically linked executible and can be installed as follows: (https://rclone.org/install/)
 
Rclone is made available as a statically linked executible and can be installed as follows: (https://rclone.org/install/)
   −
<code>
+
<pre>
 
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
 
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
   
unzip rclone-current-linux-amd64.zip
 
unzip rclone-current-linux-amd64.zip
   
cd rclone-*-linux-amd64
 
cd rclone-*-linux-amd64
   
sudo cp rclone /usr/bin/
 
sudo cp rclone /usr/bin/
   
sudo chown root:root /usr/bin/rclone
 
sudo chown root:root /usr/bin/rclone
   
sudo chmod 755 /usr/bin/rclone
 
sudo chmod 755 /usr/bin/rclone
 
+
</pre>
</code>
      
Note that this loads the 64 bit version, other versions are available.
 
Note that this loads the 64 bit version, other versions are available.
Line 90: Line 91:  
Then you can run the configuration process:
 
Then you can run the configuration process:
   −
<code>rclone config</code>
+
<pre>rclone config</pre>
    
Choose your cloud provider and follow the instructions for a headless server.
 
Choose your cloud provider and follow the instructions for a headless server.
Line 100: Line 101:  
Here is the shell script that I developed and tested to see if it would work:
 
Here is the shell script that I developed and tested to see if it would work:
   −
<code>
+
<pre>
 
!/bin/sh
 
!/bin/sh
   
signal-event pre-backup
 
signal-event pre-backup
   
cd /
 
cd /
   
rclone mkdir smeserver-dropbox:backup
 
rclone mkdir smeserver-dropbox:backup
   
rclone mkdir smeserver-dropbox:backup/smeserver
 
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-user-custom
   
rclone mkdir smeserver-dropbox:backup/smeserver/etc/e-smith/templates-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/home
   
rclone mkdir smeserver-dropbox:backup/smeserver/ssh
 
rclone mkdir smeserver-dropbox:backup/smeserver/ssh
   
rclone mkdir smeserver-dropbox:backup/smeserver/root
 
rclone mkdir smeserver-dropbox:backup/smeserver/root
   
rclone copy -v  / smeserver-dropbox:backup/smeserver --files-from backup-files-list-rclone
 
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-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/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  etc/ssh smeserver-dropbox:backup/smeserver/ssh
   
rclone copy -v  root smeserver-dropbox:backup/smeserver/root
 
rclone copy -v  root smeserver-dropbox:backup/smeserver/root
   
rclone copy -v  home/e-smith/ smeserver-dropbox:backup/smeserver/home/ --exclude "tmp/**"
 
rclone copy -v  home/e-smith/ smeserver-dropbox:backup/smeserver/home/ --exclude "tmp/**"
 
+
</pre>
</code>
      
=== Incremental Backup ===
 
=== Incremental Backup ===
Line 172: Line 157:     
<!-- list of category you want to see this page in -->
 
<!-- list of category you want to see this page in -->
[[Category: Contrib]]  
+
[[Category: Howto]]  
 
[[Category: rclone]]  
 
[[Category: rclone]]  
 
[[Category: backup]]
 
[[Category: backup]]
 
<!-- Please keep there the template revision  number as is -->
 
<!-- Please keep there the template revision  number as is -->
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu