1.Installation
sudo wget -O /opt/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v2.5.0/duplicacy_linux_x64_2.5.0
2.取得token
3.設定參數
sudo ln -s /opt/duplicacy /usr/local/bin/duplicacy
cd u
到要備份的資料夾
$ cd path/to/your/repository
$ duplicacy init mywork sftp://user@192.168.1.100/path/to/storage
duplicacy init mywork gcs://bucket/path/to/storage
儲存地點&方式參考:
SFTP
sftp://username@server/path/to/storage (path relative to the home directory)
sftp://username@server//path/to/storage (absolute path)
Amazon S3
s3://amazon.com/bucket/path/to/storage (default region is us-east-1)
s3://region@amazon.com/bucket/path/to/storage (other regions must be specified)
Google Cloud Storage
gcs://bucket/path/to/storage
You must first obtain a credential file by authorizing.
Duplicacy to access your Google Cloud Storage account or by downloading a service account credential file.
https://console.cloud.google.com/projectselector/iam-admin/serviceaccounts
You can also use the s3 protocol to access Google Cloud Storage. To do this, you must enable the s3 interoperability in your Google Cloud Storage settings and set the storage url as s3://storage.googleapis.com/bucket/path/to/storage.
--------------------------------------------------------------------