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
Compare revisions
ef25ea63cdc9528e378650ec3fb3c195365b4472 to 91e28b99d0431bd9da433ad74fb23305b1613155
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
radoslav_bodo/rwm
Select target project
No results found
91e28b99d0431bd9da433ad74fb23305b1613155
Select Git revision
Swap
Target
radoslav_bodo/rwm
Select target project
radoslav_bodo/rwm
1 result
ef25ea63cdc9528e378650ec3fb3c195365b4472
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
general: bump version
· a3885eeb
Radoslav Bodó
authored
10 months ago
a3885eeb
scripts: cron use rwm from PATH
· 2ea640ac
Radoslav Bodó
authored
8 months ago
2ea640ac
general: update changelog
· 91e28b99
Radoslav Bodó
authored
8 months ago
91e28b99
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
rwm.py
+1
-1
1 addition, 1 deletion
rwm.py
scripts/cron.sh
+2
-2
2 additions, 2 deletions
scripts/cron.sh
with
8 additions
and
3 deletions
CHANGELOG.md
View file @
91e28b99
# RWM changelog
# RWM changelog
## 1.3 - Pathfinder
*
changed: cron use rwm from PATH
## 1.2 - Holodeck preserver
## 1.2 - Holodeck preserver
*
changed: cron, use .conf, propagate return code, prune logs
*
changed: cron, use .conf, propagate return code, prune logs
...
...
This diff is collapsed.
Click to expand it.
rwm.py
View file @
91e28b99
...
@@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict
...
@@ -23,7 +23,7 @@ from pydantic import BaseModel, ConfigDict
from
tabulate
import
tabulate
from
tabulate
import
tabulate
__version__
=
"
1.
2
"
__version__
=
"
1.
3
"
logger
=
logging
.
getLogger
(
"
rwm
"
)
logger
=
logging
.
getLogger
(
"
rwm
"
)
logger
.
setLevel
(
logging
.
INFO
)
logger
.
setLevel
(
logging
.
INFO
)
...
...
This diff is collapsed.
Click to expand it.
scripts/cron.sh
View file @
91e28b99
...
@@ -6,7 +6,7 @@ umask 077
...
@@ -6,7 +6,7 @@ umask 077
LOGFILE
=
"/var/log/rwm/cron.log.
$(
date
+
'%Y-%m-%dT%H:%M:%S%z'
)
"
LOGFILE
=
"/var/log/rwm/cron.log.
$(
date
+
'%Y-%m-%dT%H:%M:%S%z'
)
"
mkdir
-p
"
$(
dirname
"
$LOGFILE
"
)
"
mkdir
-p
"
$(
dirname
"
$LOGFILE
"
)
"
/opt/rwm/rwm.py
--config
/etc/rwm.conf backup-all 1>
"
$LOGFILE
"
2>&1
rwm
--config
/etc/rwm.conf backup-all 1>
"
$LOGFILE
"
2>&1
RET
=
$?
RET
=
$?
if
[
$RET
=
0
]
;
then
if
[
$RET
=
0
]
;
then
...
@@ -19,4 +19,4 @@ cat "$LOGFILE" | mail -E -s "rwm backup-all $RESULT" "$LOGNAME"
...
@@ -19,4 +19,4 @@ cat "$LOGFILE" | mail -E -s "rwm backup-all $RESULT" "$LOGNAME"
find /var/log/rwm
-type
f
-mtime
+90
-exec
rm
{}
\;
find /var/log/rwm
-type
f
-mtime
+90
-exec
rm
{}
\;
exit
$RET
exit
$RET
\ No newline at end of file
This diff is collapsed.
Click to expand it.