Created
August 4, 2014 12:31
-
-
Save phrawzty/a670760384c21beabcf1 to your computer and use it in GitHub Desktop.
Duplicati from the CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Duplicati.CommandLine.exe backup \ | |
--passphrase=$PASSPHRASE \ | |
--aws_access_key_id=$AWS_KEY \ | |
--aws_secret_access_key=$AWS_SECRET \ | |
--s3-location-constraint=$LOC \ | |
--aes-encryption-dont-allow-fallback=true \ | |
$DIR \ | |
s3://$S3_BUCKET/$DIR | |
# Obviously the S3 DIR target can be tweaked; this is just a simple example. | |
# If RRS is acceptable, add $S3_RRS in the options list. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOCATION='<location>' # EU, for example. | |
$PASSPHRASE='<passphrase>' | |
$AWS_KEY='<access_key>' | |
$AWS_SECRET='<secret_key>' | |
$S3_BUCKET='<bucket_name>' | |
$S3_RRS='--s3-use-rrs' # use reduced replication for backup | |
$DEBUG='--debug-output --log-level=Profiling' # verbosity to the max!!!1one | |
$DIR='<path>' # /Users/username/Documents/, for example. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Duplicati.CommandLine.exe restore \ | |
--passphrase=$PASSPHRASE \ | |
--aws_access_key_id=$AWS_KEY \ | |
--aws_secret_access_key=$AWS_SECRET \ | |
s3://$S3_BUCKET/$DIR \ | |
$DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment