Writing a script in LuckyBackup
Hi Everyone,
I have luckybackup up and running and all seems good. But i want it to perform a chown and chmod command before it backs things from one drive to another. I installed Kwrite and but have no clue how to write the command in it and connect it to luckybackup. I tried writng the command in kwrite the way you would in terminal, then saved it and went to lucky backup and clicked the advanced button and browsed and opened the file in there. But when i run it it gives me some error command. Please help me in how to write script/bashing for lucky backup (not sure what bash script is (i found that through googling)) Thanks a ton |
Did you see the manual example: http://luckybackup.sourceforge.net/m...cedAlsoExecute ?
|
Thanks for your response. I did try writing "sudo chmod..." in the line and add it. But when i dry run it, it gives me error. I googled it and some people said that they wrote the commands in kwrite and then linked the file to the lucky backup. They added the file and that somehow automatically ran the code? So i tried that and even that didnt work :(.
|
Create this text as a file using your favorite editor:
Code:
#!/bin/bash -- |
hey thanks! Your post gave me some insight in figuring it out. I did what you said but i did not see the message scroll by. but i figure from your example on how to actually write a bash script. And then i did some more googling based on different errors i still kept getting and then found that sudo commands work on "lukcybackup super" and not the normal luckybackup. So i opened luckybackup super user and added the file that contained the bash script and it worked beautifully.
so far so good. Thanks for your help unSpawn! For all who has similar issue that I had, I wrote a script in gedit, like: Code:
#!/bin/bash Go to advance, and in the also execute field just add the name.sh file in there. Use whatever command is applicable to you (ofcourse) instead of chmod. thats about it and it should run with no problem. |
All times are GMT -5. The time now is 06:09 AM. |