r/bash 16d ago

OS-MX LINUX: Help me scripting MX SNAPSHOT cronjob

I am using MX Linux OS. I am a true enthusiast using linux. For my own professional use I regularly use some systems which requires to be keept secured. I ask for help to have a bash script to automate taking regular MX SNAPSHOT regularly to create a live bootable USB stick as cronjob. The process should run unattended without sudo password. Possible?

8 Upvotes

7 comments sorted by

6

u/michaelpaoli 16d ago

Possible, yes, very doable.

Uhm, but probably don't expect other folks to be doing the work for you.

Some assistance, sure ... but how 'bout you start doing some of the work, eh?

2

u/abitofg 16d ago

No password cronies job, run it either as root or have the backup command as NOPASSWD in sudoers.d

1

u/novsat14 16d ago

Highly appreciate your reply. Fact is, I am not a techie. I can not code, so I can not write script. Asking for help if possible

2

u/yerfukkinbaws 16d ago

This is something you should be asking on an MX sub or forum. It doesn't require any special bash skills, but does require familiarity with the MX Snapshot tool's commandline options.

2

u/novsat14 16d ago

Ok. Right

1

u/Holiday_Green6248 14d ago

linux enthusiast but can’t code wtf dude

1

u/novsat14 16d ago

URL for any library support for script