-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add s3crypto remote as a S3 with E2E encryption
- Loading branch information
1 parent
b1efa29
commit 4d6ce15
Showing
10 changed files
with
142 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ __pycache__ | |
.venv | ||
.pytest_cache | ||
tests-env/data | ||
bin/rclone |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[MASTER] | ||
disable=missing-function-docstring,missing-class-docstring | ||
disable=missing-function-docstring,missing-class-docstring,too-many-arguments |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
from argparse import ArgumentParser | ||
from logging import basicConfig, INFO | ||
from logging import basicConfig, INFO, DEBUG | ||
from .rotate.app import add_args as add_rotate_args, run_from_args as run_rotate_from_args | ||
from .upload.app import add_args as add_upload_args, run_from_args as run_upload_from_args | ||
from .args import add_common_args | ||
|
||
|
||
def main(): | ||
""" __main__ """ | ||
basicConfig(level=INFO, format='%(asctime)s - %(levelname)s :: %(message)s') | ||
|
||
parser = ArgumentParser("rbackup-rotate") | ||
add_common_args(parser) | ||
add_rotate_args(parser) | ||
add_upload_args(parser) | ||
|
||
args = vars(parser.parse_args()) | ||
basicConfig(level=DEBUG if args['debug'] else INFO, | ||
format='%(asctime)s - %(levelname)s :: %(message)s') | ||
|
||
run_rotate_from_args(args) | ||
run_upload_from_args(args) | ||
run_rotate_from_args(args) |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test-minio-enc: | ||
cd .. && export PATH=$$PATH:./bin && ./bin/rbackup --remote-type s3crypto -r '{"endpoint": "http://127.0.0.1:9000", "enc_password": "test123test123", "enc_salt_password": "testtesttesttesttest", "base_dir": "", "access_key_id": "anarchism", "secret_key": "anarchism", "bucket_name": "test"}' -m 4 ./README.md --pattern '(.*)\.md' |