Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rwm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Radoslav Bodó
rwm
Commits
c5f39511
Commit
c5f39511
authored
1 year ago
by
Radoslav Bodó
Browse files
Options
Downloads
Patches
Plain Diff
general: cleanups
parent
2d23bbfa
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Makefile
+1
-1
1 addition, 1 deletion
Makefile
README.md
+7
-0
7 additions, 0 deletions
README.md
rwm.py
+0
-1
0 additions, 1 deletion
rwm.py
with
9 additions
and
2 deletions
.gitignore
+
1
−
0
View file @
c5f39511
__pycache__/
.coverage
.pytest_cache/
.vscode/
rwm.conf
testfile*
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
c5f39511
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
...
...
This diff is collapsed.
Click to expand it.
README.md
+
7
−
0
View file @
c5f39511
...
...
@@ -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 .
...
...
This diff is collapsed.
Click to expand it.
rwm.py
+
0
−
1
View file @
c5f39511
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment