Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D doc-website
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Systerserver
  • doc-website
  • Wiki
  • Container Backups with Restic

Container Backups with Restic · Changes

Page history
Update Container Backups with Restic authored May 23, 2021 by Mara Karagianni's avatar Mara Karagianni
Hide whitespace changes
Inline Side-by-side
Container-Backups-with-Restic.md
View page @ c0505dad
......@@ -67,8 +67,7 @@ Add these commands in a new file under /etc/sudoers.d/
https://www.cyberciti.biz/faq/linux-unix-running-sudo-command-without-a-password/
### Command to run backups from terminal
### Backup command
Needs the following parameters:
- path to password file:
PASSWORD="~backupuser/pass"
......@@ -134,6 +133,13 @@ for container in ${STOPPED_CONTAINERS[@]}; do
sudo lxc-start $container
done
```
### Cron job
As backupuser we add the command in the cron jobs to run once a day (*or anything else it is suitable for the project*)
`crontab -e`
`00 04 * * * ./backup.sh 2> ./backup_error.log`
### Resources for backup scripts and helpful tips
- restic for backups
......
Clone repository
  • Container Backups with Restic
  • Mailing Lists Docs
  • Sysadmin tasks
  • Home