Skip to content

Instantly share code, notes, and snippets.

@phrawzty
Created August 4, 2014 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phrawzty/a670760384c21beabcf1 to your computer and use it in GitHub Desktop.
Save phrawzty/a670760384c21beabcf1 to your computer and use it in GitHub Desktop.
Duplicati from the CLI
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.
$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.
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