Tento návod demonstruje připojení do cloudového uložiště pomocí programu RCLONE.
Připojení do cloudového uložiště pomocí RCLONE je možné na MAC, Linux a Windows.
Instalace RCLONE
Linux CentOS/RHEL
yum install -y rclone
Linux Ubuntu/Debian
apt install -y rclone
Windows
https://rclone.org/install/#windows
Nastavení připojení do cloudového uložiště
Nejprve potřebujeme otevřít průvodce konfigurací přikazem:
rclone config
Poté v průvodci konfigurací vytvořte nový vzdálený koncový bod:
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
Zadejte název vašeho koncového bodu:
name> myowncloud
Choose type of storage:
Type of storage to configure.
Choose a number from below, or type in your own value
..
37 / Webdav
\ "webdav"
..
Storage> webdav
Zadejte adresu URL serveru cloudového uložiště:
** See help for webdav backend at: https://rclone.org/webdav/ **
URL of http host to connect to
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
1 / Connect to example.com
\ "https://example.com"
url> https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/
Zadejte typ služby webdav:
Name of the Webdav site/service/software you are using
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
1 / Nextcloud
\ "nextcloud"
2 / Owncloud
\ "owncloud"
3 / Sharepoint Online, authenticated by Microsoft account.
\ "sharepoint"
4 / Sharepoint with NTLM authentication. Usually self-hosted or on-premises.
\ "sharepoint-ntlm"
5 / Other site/service or software
\ "other"
vendor> owncloud
Vložte svoje přihlašovací jméno:
User name. In case NTLM authentication is used, the username should be in the format 'Domain\User'.
Enter a string value. Press Enter for the default ("").
user> <YOUR_USERNAME>
Zadejte vaše heslo:
Password.
y) Yes type in my own password
g) Generate random password
n) No leave this optional password blank (default)
y/g/n> y
Enter the password:
password:
Confirm the password:
password:
Bearer token instead of user/pass (e.g. a Macaroon)
Enter a string value. Press Enter for the default ("").
bearer_token>
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n
Potvrďte shrnutí konfigurace:
Remote config
--------------------
[myowncloud]
type = webdav
url = https://privatecloud.imtm.cz/remote.php/dav/files/<YOUR_USERNAME>/
vendor = owncloud
user = <YOUR_USERNAME>
pass = *** ENCRYPTED ***
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Pokud je vše nakonfigurováno, vaše konfigurace rclone by měla vypadat takto:
Current remotes:
Name Type
==== ====
myowncloud webdav
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
Přenos souborů a složek
Kopírování složek do cloudového uložiště
rclone copy --progress /backup myowncloud:/backup
Kopírování složek z cloudového uložiště
rclone copy --progress myowncloud:/backup /backup
Kopírování souborů do cloudového uložiště
rclone copy --progress /myfile.tar myowncloud:/backup
Kopírování souborů z cloudového uložiště
rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar
Kontrolní součet
Kontrolní součet souboru
rclone copy --progress myowncloud:/backup/myfile.tar /myfile.tar
Kontrolní součet složky
rclone copy --progress myowncloud:/backup /backup