Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
iml-backup
Merge requests
!18
add param prune and help in transfer.sh
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
add param prune and help in transfer.sh
version-2
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
add param prune and help in transfer.sh
Hahn Axel (hahn)
requested to merge
version-2
into
master
Dec 2, 2021
Overview
0
Commits
1
Pipelines
0
Changes
2
0
0
Merge request reports
Viewing commit
2d431342
Show latest version
2 files
+
116
−
28
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
2d431342
add param prune and help in transfer.sh
· 2d431342
Hahn Axel (hahn)
authored
Dec 2, 2021
README.md
+
58
−
2
View file @ 2d431342
Edit in single-file editor
Open in Web IDE
Show full file
@@ -49,7 +49,7 @@ RESTIC
*
encrypts data
*
deduplicates files
*
delete backups by rules to keep a count of hourly, daily, weekly, mothly, yearly backups
*
several backup targets (we currently use sftp:// http:// and file://)
*
several backup targets (we currently use sftp:// http
s
:// and file://)
### control simoultanous backups ###
@@ -186,10 +186,66 @@ TODO: advanced stuff ... There is a possibility for directory based include and
### Setup the target ###
incl. test transfer to storage
Edit
**jobs/transfer.job**
. This file handles the transfer of local directories
to a backup target. You find comments in the config.
By default the backp tool "restic" is activated (and recommended). You can switch to duplicity
if you feel familiar with it.
`bin = restic`
Create a repository base directory with the wanted protocol. This step has to be done
once for all systems you want to backup. The IML Backup will create a subdirectory
with the hostname for its backups. Set your target in storage:
`storage = sftp://backup@storage.example.com//netshare/backup`
## Production usage ##
Edit
**jobs/transfer.job**
.
Set a password to encrypt local data with it. Each system should have its own password.
Use a long password - i.e. 128 characters.
Save your password list - if you loose it you cannot restore data anymore.
`passphrase = EnterYourSecretHere`
Change the restore path if needed. A restore does not overwrite the current files.
`restore-path = /restore`
Then have a look to the section with variables that have the prefix of bin = ... (restic_... or duplicity_...).
The index files are stored in $HOME. Because /root partition could be to small for
systems with many files (fileserver) you can put the index somewhere else:
`*_cachedir = ...`
With this loglevel you get a list of new or changed files in the log:
`restic_verbose = 2`
You can set a tag that is set for backups by script.
`restic_tag = imlbackup`
The mount of backup sets is a restic feature. After mounting a backup there
you can browse via filesystem through backups and timestamps.
`restic_mountpoint = /mnt/restore`
Define how many backups you wanto to keep. After the backup of a directory
the cleanup strategy will be applied.
```
# prune
restic_keep-hourly = 100
restic_keep-daily = 90
restic_keep-weekly = 12
restic_keep-monthly = 12
restic_keep-yearly = 10
```
### setup backup times ###
### Create a cronjob ###
Loading