I want to programmatically create ZIP files of an actively developed piece of software I’m writing, and I’d like to do so on a nightly basis.
In other words, I want to ZIP /home/username/example.com/path/to/sw/ (the sw/ directory and everything in it), and I’d like the ZIP file saved to /home/username/static.example.com/sw.zip
I know how to ZIP via Shell; while in the (using the above example) to/ directory, I ran “zip sw sw” and shell reported that the ZIP was created successfully. I just have NO idea where it saved it too… It’s not in the path/, to/, sw/ or even in home/username/…
What I’d like is for the ZIP to be created each night at midnight.
I cannot for the life of me figure out what to put in the command box of the DH panel’s cron interface. I’ve wasted a few hours on this, so I hope one of you is able to help me out. Thanks!