Skip to content
Snippets Groups Projects
Commit c5f39511 authored by Radoslav Bodó's avatar Radoslav Bodó
Browse files

general: cleanups

parent 2d23bbfa
No related branches found
No related tags found
No related merge requests found
__pycache__/
.coverage
.pytest_cache/
.vscode/
rwm.conf
testfile*
......
all: lint
install:
apt-get -y install awscli make python3-cryptography rclone yamllint
apt-get -y install awscli make python3-cryptography rclone restic yamllint
venv:
apt-get -y install python3-venv
......
......@@ -69,6 +69,13 @@ rwm rcc lsl rwmbe:/
### Notes
* https://rclone.org/commands/rclone_sync/
It is always the contents of the directory that is synced, not the directory itself.
So when source:path is a directory, it's the contents of source:path that are copied,
not the directory name and contents. See extended explanation in the copy command if unsure.
* corect, fails to download corrupted files
```
root@bacula-test:/opt/rwm# ./rwm.py rcc copy rwmbe:/testfile.txt .
......
......@@ -116,7 +116,6 @@ class RWM:
"RESTIC_PASSWORD": self.config["RES_PASSWORD"],
"RESTIC_REPOSITORY": f"s3:{self.config['S3_ENDPOINT_URL']}/{self.config['RES_BUCKET']}",
}
#--one-file-system
return subrun(["restic"] + args, env=env, check=False).returncode
def main(argv=None, dict_config=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment