Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to enable auto backups each day - let type in a CT time for now #47

Closed
2 tasks done
Tracked by #127
szaimen opened this issue Dec 4, 2021 · 1 comment · Fixed by #455
Closed
2 tasks done
Tracked by #127

Add option to enable auto backups each day - let type in a CT time for now #47

szaimen opened this issue Dec 4, 2021 · 1 comment · Fixed by #455
Labels
2. developing Work in progress borg enhancement New feature or request mid term

Comments

@szaimen
Copy link
Collaborator

szaimen commented Dec 4, 2021

  • block login for 5min or so before the backup starts and delete all sessions

  • update mastercontainer first: create a file that the update was run. if the file exists, continue directly with updating the and backing up the rest...

  • only show the option after the initial backup was created

  • Also make clear that this automatically start the containers after the backup is done which will automatically update them (except the mastercontainer)

  • Needs to remove all sessions when the job starts in the background so that you don't get into any race conditions (and also set auth state to logged out?)

  • hide start containers button when auto backup is running (starting all containers directly after borgbackup container should prevent that (maybe delete the sessions again after the backup container was started to make sure))

  • Allow to select the borg archive to restore from #39

  • if backup creation fails, add file to nextcloud container so that it skips any automatic update #67

  • https://unix.stackexchange.com/a/94521

  • inform about the state of the backup (wait until the nextcloud container is running again qfter backup xontainer was started and all other containers were started) and then send the notification

  • may also update all nextcloud apps on startup (not if backup was restored)

@szaimen szaimen added 1. to develop Accepted and waiting to be taken care of enhancement New feature or request mid term borg labels Dec 4, 2021
This was referenced Feb 16, 2022
@szaimen szaimen pinned this issue Mar 2, 2022
@szaimen szaimen unpinned this issue Mar 15, 2022
@szaimen szaimen pinned this issue Mar 15, 2022
@szaimen
Copy link
Collaborator Author

szaimen commented Apr 4, 2022

    # 1. delete all sessions and block login
    # 2. After 5min waiting, Update the mastercontainer (and check if watchtower is running)
    # 3. create a file which can be checked for: if the file is present, start with the process at this step after the update and skip waiting for the next day
    # 4. shut down all containers
    # 5. create backup 
    # 6. start all containers (because it will wait until backup container has finished)
    # 7. unblock login
    # 8. after nextcloud was started, send message if backup was successful or not

@szaimen szaimen added 2. developing Work in progress and removed 1. to develop Accepted and waiting to be taken care of labels Apr 5, 2022
@szaimen szaimen unpinned this issue Apr 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2. developing Work in progress borg enhancement New feature or request mid term
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant