-
-
User.Scripts Plugin Support needed - Script not finding directory
Totally makes sense now. I completely overlooked that. So I need to find a location outside of the mariadb container, bind it to the container and change the accordingly. Thank you!
-
User.Scripts Plugin Support needed - Script not finding directory
Hello, would have posted this in the plugin support forum but somehow could not start a topic there. I have this problem: I installed the User.Scripts plugin and created a new script in the GUI called "backup_mariadb" which created a script file in /boot/config/plugins/user.scripts/scripts/backup_mariadb the script has the following content: #!/bin/bash echo starting the backup container=mariadb user=root password=password dbname=mydatabase backup=/mnt/user/data/backups/mariadb d=`date +%Y-%m-%d` echo deleting old backups, older than 14 days docker exec $container find $backup -type f -mtime +14 -exec rm -r {} + echo about to backup $dbname echo docker exec $container mysqldump -u $user -p$password --databases $dbname --single-transaction --quick --result-file=$backup/$dbname-$d.sql echo echo finished backup up to $backup Whenever I run the script though I get the following: Script location: /tmp/user.scripts/tmpScripts/backup_mariadb/script Note that closing this window will abort the execution of this script starting the mariadb backup deleting old backups, older than 14 days find: ‘/mnt/user/data/backups/mariadb’: No such file or directory about to backup.... The location does exist though and has permissions for nobody:user recursively. When I manually execute a find command in the terminal to look for that location it returns it like normal. Am I doing something wrong? OR what exactly could this be? Permissions? Appreciate your help.
-
Antergosgeek started following Announcements
-
SFF Build - Case, Motherboard recommendation needed
Ok, I think after a longer back and forth with myself I have decided to go with a fractal design node 304. There are smaller cases out there but really that one seems to give me the most flexibility. Now for Motherboard and Processor a quick question, I was thinking about potentially getting a Ryzen 5600g but only if I can passthrough the iGPU to a VM. I looked a little and from all I can tell that should be possible. Can anyone confirm that?
-
SFF Build - Case, Motherboard recommendation needed
Hello, so what I would like to do is a SFF Build I really only need 2x3.5 drives maybe 3 but technically 2 would be enough. I want the build to be small. What I currently already have is an SFX power supply, 2x 4TB 3.5 WD Red Nas drives, WD Black SN750 1TB NVME SSD, but I have nothing else. No case (which is a big struggle because I really need it to be small and then going from there motherboard etc. i originally thought of using something like the Coolermaster nr200 but that really only has 1x true 3.5 HDD Bay and is maybe not ideal. My use case is backups, docker and would like to run ubuntu vm (maybe win10vm but not dead set on that). Any recommendations?
Antergosgeek
Members
-
Joined
-
Last visited