CloudCross Multi-Cloud客户端是一个开源项目,旨在启用Linux操作系统上的同步文件和文件夹。它可以在本地系统和云平台之间同步文件和文件夹。用户可以告诉CloudCross他想包含的特定或与返回或同步不同的内容。它在本地或云存储上应在哪个文件/文件夹上获得优势。
CloudCross纯粹是在QT上开发的,而没有任何第三方图书馆使用任何第三方。它支持的云存储是Cloudmail,Google Drive,OneDrive,Dropbox和Yandex磁盘。
Cloucross的其他功能是在MS-Office,Libre,Open Office格式上为Google Docs创建的文档的双向转换;在Google Drive上管理和创建新版本的文件,将文件上传和下载到云以及创建链接以下载文件。
CloudCross可以安装在Ubuntu,Redhat,Gentoo和Arch上。在这里,我们将Ubuntu用于其他操作系统安装,您可以看到存储库安装的官方页面。关联
有可用的CloudCross GUI,因此我们要做的一切都是使用命令行终端。
CloudCross GitHub项目页面也可供下载该项目;如果有人想进一步安装或开发。
Linux的安装和设置CloudCross多云客户端
步骤1: 访问您的Ubuntu系统
步骤2:打开命令终端(CTRL+ALT+T)
步骤3:CloudCross取决于QTBASE5,因此我们需要与其他依赖关系一起安装。
根据您的平台运行以下安装命令:
对于Ubuntu/Debian/Linux Mint
sudo apt-get install build-essential qt5-default qtbase5-dev qt5-qmake libcurl4-openssl-dev
对于RPM Packager(Redhat,Centos,Fedora,Alt Linux)
yum groupinstall 'Development Tools' yum install qt5-qtbase qt5-qtbase-devel curl-devel
对于Arch Linux
pacman -S base-devel qt5-base curl
步骤4:下载Redhat,Centos,Fedora,Alt Linux,Ubuntu/ubuntu/debian/linux Mint或任何其他Linux的CloudCross。
CloudCross项目可在Girub。这是链接下载CloudCross的压缩拉链文件。
步骤5:下载后,使用以下命令切换到下载目录。
cd Downloads
步骤6:在下载中,您将看到带有名称CloudCross-Mastert.zip的ZIP文件
使用此命令解压缩CloudCross压缩文件夹:
unzip CloudCross-master.zip
步骤7:进入CloudCross的拆卸或提取的文件夹。
命令是
cd CloudCross-master
步骤8:创建一个构建目录,我们在其中编译了CloudCross。
为此,请使用以下命令:
mkdir build
步骤9:输入构建目录
cd build
步骤10:使CloudCross准备好编译。
使用以下命令:
sudo apt-get install qmake qmake ../CloudCross.pro make
上述命令的输出:
h2s@h2s-VirtualBox:~/Downloads/CloudCross-master$ cd build h2s@h2s-VirtualBox:~/Downloads/CloudCross-master/build$ qmake ../CloudCross.pro h2s@h2s-VirtualBox:~/Downloads/CloudCross-master/build$ make cd MSHttpRequest/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/h2s/Downloads/CloudCross-master/MSHttpRequest/MSHttpRequest.pro ) && make -f Makefile make[1]: Entering directory '/home/h2s/Downloads/CloudCross-master/build/MSHttpRequest' g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../MSHttpRequest -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs /linux-g++ -o main.o ../../MSHttpRequest/main.cpp g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../MSHttpRequest -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o mshttprequest.o ../../MSHttpRequest/mshttprequest.cpp
步骤12:以上命令运行以下两个命令:
sudo cp "./ccross-app/ccross" "/usr/bin" sudo cp "./ccross-curl-executor/ccross-curl" "/usr/bin"
步骤11:现在我们将不同的云服务与CloudCross连接起来。
众所周知,CloudCross是一个多云客户端,因此我们可以使用IT连接,例如OneDrive,Google Drive,Dropbox或Cloud Mail.ru的Yandex磁盘。我们只需要打开命令终端并输入CCROSS -A选项以及语法 - provider [name]。
请参阅此示例。假设我们要连接Google驱动器,以便命令将是
ccross -a --provider google
当您添加云提供商时,链接将在您的命令终端中显示为输出。复制并在浏览器中打开。
在我们的情况下输出链接
h2s@h2s-VirtualBox:~/Downloads/CloudCross-master/build$ ccross -a --provider google -------------------------------------Please go to this URL and confirm application credentialshttps://accounts.google.com /ServiceLogin?passive=1209600&continue =https://accounts.google.com/o/oauth2/v2/auth?response_type%3Dcode%26redirect_uri%3D https://127.0.0.1:1973 %26client_id%3D834415955748-oq0p2m5dro2bvh3bu0o5bp19ok3qrs3f .apps.googleusercontent.com%26access_type%3Doffline%26scope%3D https://www.googleapis.com/auth/drive%2Bhttps://www.googleapis.com/auth/userinfo. email%2Bhttps://www.googleapis.com/auth/userinfo.profile%2Bhttps://docs.google.com/ feeds/%2Bhttps://docs.googleusercontent.com/%2Bhttps://spreadsheets. google.com/feeds/%26state%3D1%26approval_prompt%3Dforce%26from_login%3D1%26as%3DDz3gIG vQ634pCd0Ts2WqSA&followup=https://accounts.google.com/o/oauth2/v2/auth?response_type% 3Dcode%26redirect_uri%3Dhttps://127.0.0.1:1973%26client_id%3D834415955748-oq0p2m5dr o2bvh3bu0o5bp19ok3qrs3f.apps.googleusercontent.com%26access_type%3Doffline%26scope% 3Dhttps://www.googleapis.com/auth/drive%2Bhttps://www.googleapis.com/auth/userinfo .email%2Bhttps://www.googleapis.com/auth/userinfo.profile%2Bhttps://docs.google.com /feeds/%2Bhttps://docs.googleusercontent.com/%2Bhttps://spreadsheets.google.com /feeds/%26state%3D1%26approval_prompt%3Dforce%26from_login%3D1%26as%3DDz3gIGv Q634pCd0Ts2WqSA<mpl=nosignup&oauth=1&sarp=1&scc=1 Token was successfully accepted and saved. To start working with the program run ccross without any options for start full synchronize.
步骤12:打开浏览器中的链接
当我们在浏览器中打开链接时,它将要求代表我们登录和访问云服务的凭据。输入用户名和密码,然后允许CloudCross访问您的云驱动器。
步骤13:如何使用CloudCross同步PC和Cloud Drive之间的文件夹
现在,使用CloudCross使用Cloud Drive在PC上同步文件夹同步。首先,输入该目录并运行命令CCROSS没有任何选择。它将自动上传/下载该文件夹中的所有内容都位于云中。如果您使用多个云服务,那么我们需要在此之后指定服务名称CCROSS命令。
步骤14:有关CloudCross命令语法的更多帮助,您可以使用:
ccross --help
您还可以查看CloudCross的官方命令使用页面:这是页面链接。
帮助命令的输出:
h2s@h2s-VirtualBox:~/Downloads$ ccross --help CloudCross v1.4.4 for Linux is a opensource program for sync local files with a many cloud storages. Options: -h [ --help ] Produce help message -v [ --version ] Display CloudCross version -a [ --auth ] Request authorization token -p [ --path ] arg Path to sync directory --dry-run Only detect which files need to be uploaded/downloaded, without actually performing them. -s [ --list ] Print remote cloud file list --use-include Use .include file. Without this option by default use .exclude file. If these files does'nt exists, they are ignore --prefer arg Define sync strategy. It can be a one of "remote" or "local". By default it's "local" --no-hidden Not sync hidden files and folders --no-new-rev Do not create new revisions of files, overwrite their instead --convert-doc Convert office document to Google Doc format when upload and convert him back when download --force arg Forcing upload or download files. It can be a one of "upload" or "download". This option overrides --prefer option value. --provider arg Set cloud provider for current sync operation. On this moment this option can be a "google", "yandex", "mailru", "onedrive" or "dropbox". Default provider is Google Drive --login arg Set login for access to cloud provider. Now it used only for Cloud Mail.ru --password arg Set password for access to cloud provider. Now it used only for Cloud Mail.ru --http-proxy arg Use http proxy server for connection to cloud provider. <arg> must be in a ip_address_or_host_name:port_number format --socks5-proxy arg Use socks5 proxy server for connection to cloud provider. <arg> must be in a ip_address_or_host_name:port_number format --cloud-space Showing total and free space of cloud --filter-type Filter type for .include and .exclude files. Can be set to "regexp" or "wildcard". Ignored if it set in files --single-thread Run as single threaded --low-memory Reduce memory utilization during reading a remote file list. Using of this option may do increase of synchronization time --empty-trash Delete all files from cloud trash bin. --no-sync If this option is set synchronization mechanism will be disabled and remote file list not be a readed. Local files will be uploaded without consideration of existence of this files on remote. Use with carefully h2s@h2s-VirtualBox:~/Downloads$
这样,我们可以使用Linux上的Google Drive访问其他云服务,以使用CloudCross Multi-Cloud客户端进行同步。请记住可用的CloudCross GUI接口,它纯粹是Linux平台的命令基础同步工具。
其他有用的资源: