Hi, I’m using Linux (Ubuntu 18.04) and downloaded Cloudberry Backup for Linux with a valid license.
I’ve created a pre-action script like this (/home/user/test.sh):
#!/bin/bash
touch /home/user/bla.txt
Then I’ve attached it to my backup plan via cmd (I don’t see the option in GUI):
$ /opt/local/MSP360\ Backup/bin/cbbV2 plan edit_backup --name "test" --pre-action-enabled "true" --pre-action-command '"/home/user/test.sh"' --confirm
And then I run the backup plan from GUI (tried aldo cmd), and it gets stuck in:
? Preparing 00:00:00 Preparing for starting...
Pre Action 00:00:00
I tried with other commands like “mysqldump” or “cp”, but nothing works. After a while, I have to manually stop the backup and I get the error:
Pre Action error (Code: 1014)
Description:
Description taken from exception
Solution:
Edit settings on the Pre / Post Actions step of your plan
BTW there’s no option to set the pre/post action in the GUI.
Am I doing something wrong? Is there an example of a simple script for Linux I can use?
Thank you
