Jump to content

[Support] Onetx - Teledock Bot - Bitwarden Export - Docker Control - Template Support


onetx

Recommended Posts

Welcome to OneTX Template Support Thread

 

 

All questions/issues related to getting any of my images running on Unraid can be asked here.

If you think a template needs improvement, feel free to post that here too.

 

= OneTX  Templates Repository =
GitHub - https://github.com/0neTX/UnRAID_Template

 

= Templates:=

  1.  MrMarble/teledock / Teledock: A simple telegram bot that allows a telegram's user to control a docker service.

                    Template repo: https://github.com/0neTX/UnRAID_Template/tree/main/teledock

                    Project repo: https://github.com/MrMarble/teledock/

                    Docker Hub: https://hub.docker.com/r/mrmarble/teledock

 

       2. 0neTX/Bitwarden_Export / Bitwarden_Export: Backup your Bitwarden Account or your Vaultwarden  (public or self-hosted) to your system.

                    Template repo: https://github.com/0neTX/UnRAID_Template/tree/main/bw-export

                    Project repo: https://github.com/0neTX/Bitwarden_Export/

                    Docker Hub: https://hub.docker.com/r/0netx/bw-export

                   

 

 

== Contact Us ==

If you require support or have any questions you can contact us at [email protected].

 

We really appreciate your support in any shape or form.

 

 

Edited by onetx
Add new template Bitwarden_Export
  • Thanks 2
Link to comment
  • onetx changed the title to [Support] Onetx - Teledock Bot Docker Control - Template Support

@onetx I'm facing some issues.

 

After everything configured correctly, i'm getting this error:

-v '/mnt/user/appdata/bw-export':'/var/attachments':'rw' '0netx/bw-export'

2dcc373d7bb8ee7a65ad6c71249299cfd2a371e91d0b7a322483dbd56609be07
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/app/bw_export.sh": permission denied: unknown.

 

Thanks

  • Thanks 1
Link to comment
  • onetx changed the title to [Support] Onetx - Teledock Bot - Bitwarden Export - Docker Control - Template Support
  • 7 months later...

Thanks for making this! I had GPT4o write a user-script to help out with the backup process and it all works great! Wanted to share the script as someone might find it useful :)

What the script does:

1. The script stores credentials for multiple users.
2. It sets up the main backup directory.
3. For each user, it sets environment variables and starts the backup process.
4. The script waits 5 minutes for the backup to complete.
5. It finds and moves the backup folder to the user's specific directory.
6. The script deletes older backups, keeping only the newest one.
7. It cleans up non-user folders from the main directory.
8. The script prints progress messages and completes the backups for all users.

TL;DR: The script backs up data for multiple users, moves the backup files to user-specific folders, and deletes old backups, keeping only the newest one. It also cleans up non-user folders from the main backup directory and prints progress throughout the process.
 


THE USER-SCRIPT: https://gist.github.com/7eventy7/5e6c10f9d0a537ad5c8d6ee4000d8c08


To use the script just replace the "GOES HERE" sections at the top of the script under the user credentials dictionary.
If you need a specific amount of users other than the 2 in this script, I'd recommend asking ChatGpt to add them as there a few sections that need to be changed.
I highly recommend using this script alongside the "appdata backup plugin" so you can keep a few copies of the backups, this script only keeps the latest backup.
Also make sure to set script to run on a cron schedule, enjoy!

Link to comment

Thank you very much for your contribution.

 

The current version already has a KEEP_LAST_BACKUPS variable that allows you to delete old backups.

 

 

    # Optional: Keep the maximum number of exports defined. A maximum of X exports will be retained, the oldest exports will be deleted.
    # - KEEP_LAST_BACKUPS=5

 

Another alternative to using a cron schedule is to use the  "User Scripts" plugin and configure the script with a scheduler.

  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...