Site Tools


rclone

rclone

https://rclone.org/docs/

Installé en plugin sur le serveur tower

plugin par Waseh

backup script

use this pattern:

rclone sync /mnt/user/photo/1978 securebbb1:mathieugfortinBackup1/1978 --transfers 16 --backup-dir securebbb1:mathieugfortinBackup1/deleted -v --log-file=/mnt/cache/cache_only/working/rclone/1978.log --bwlimit="08:00,1M 23:00,off"

or use the script

/mnt/cache/cache_only/working/rclone/rclonephoto.sh

logs are in

/mnt/cache/cache_only/working/rclone/

init script

[backblaze]
type = b2
account = 002b559c9985de80000000007
key = K0029ga9A3DWiIWTzEFufx1Nosh4nBI
hard_delete = true

[securebbb1]
type = crypt
remote = backblaze:mathieugfortinBackup1
filename_encryption = standard
directory_name_encryption = true
password = w4jCqIOhJ4mea33IHhCSLX_mZJJM6RO4ziZ4-QIQenE59WI1L6gN3JSgWmt6NQ
password2 = 49GgwQGFqseyPnMkiAbF3HPYLzDF1xBK8d159DiFTkZelu2WtOQn4Y8HRH8WkQ

[securebbb2]
type = crypt
remote = backblaze:mathieugfortinBackup2
filename_encryption = standard
directory_name_encryption = true
password = w4jCqIOhJ4mea33IHhCSLX_mZJJM6RO4ziZ4-QIQenE59WI1L6gN3JSgWmt6NQ
password2 = 49GgwQGFqseyPnMkiAbF3HPYLzDF1xBK8d159DiFTkZelu2WtOQn4Y8HRH8WkQ

mount script

#!/bin/bash

mntpoint1="/mnt/disks/securebbb1" 		
remoteshare1="securebbb1:mathieugfortinBackup1"   
mntpoint2="/mnt/disks/securebbb2" 		
remoteshare2="securebbb2:mathieugfortinBackup2"   
mntpoint3="/mnt/disks/backblaze" 		
remoteshare3="backblaze:"      


mkdir -p $mntpoint1
mkdir -p $mntpoint2
mkdir -p $mntpoint3
rclone mount --max-read-ahead 1024k --allow-other $remoteshare1 $mntpoint1 &
rclone mount --max-read-ahead 1024k --allow-other $remoteshare2 $mntpoint2 &
rclone mount --max-read-ahead 1024k --allow-other $remoteshare3 $mntpoint3 &

unmount script

#!/bin/bash
#----------------------------------------------------------------------------
# This script unmounts your remote share                                     |
#----------------------------------------------------------------------------

# Local mountpoint
mntpoint1="/mnt/disks/securebbb1" 		
mntpoint2="/mnt/disks/securebbb2" 		
mntpoint3="/mnt/disks/backblaze" 		
						
#---------------------------------------------------------------------------------------------------------------------

fusermount -u $mntpoint1
fusermount -u $mntpoint2
fusermount -u $mntpoint3
rclone.txt · Last modified: by 127.0.0.1