useful scripts that work in DA (tricks & Tips)

Kyo

Verified User
Joined
Jul 12, 2021
Messages
137
Hello,
I am trying to have some small commands and make some scripts to save our time I have little knowledge and ideas will get help from you guys

let we start from it

let we make a backup script

nano bkp.sh
da admin-backup --destination /home/admin/user_backups/ --user USERNAME
chmod +x bkp.sh

I want to know how should I write it like when I use ./bkp.sh and its ask for username, and we just put username, and it will perform backup
we can make it better like it's ask 1st time destination as well next time it will not ask for destination, I know it's not a big script, but it will reduce my daily task like backup/transfer to another server if someone wants to change his DC or suspend user

just let me know how I can make it that scripts ask me for input value

Thank You
 
Back
Top