I've got a situation where I need to give some people access to my dropbox folder. Already so far they have deleted huge folders full of important data. Their computer skills could use a bit of work, apparently. Thankfully there is a restore function on the dropbox website. But the gui doesn't seem super-powerful, and I'm afraid that these people are going to permanently delete something.
I've been making a zip archive of the folder, and saving it every day on my local machine. I've already restored files on it that I couldn't find on the dropbox restore gui.
But I'm afraid that I'll get busy or lazy and forget to make the archive. So I figure that this is a good opportunity to learn basic automated shell scripting.
How can I design a script that will
- Run on startup
- Prompt me (I don't know how) to see if I want to make a zip archive of a specific directory
- Do so, and save it as
I know only minimal bash at present (
ssh, etc), so a working example of how to do such a thing would be a springboard to doing other useful similar things in the future.
I'm running Ubuntu on a thinkpad x230.