I am currently working on a project where I have to build a Linux network on a virtual machine using Ubuntu 18.04. I am currently trying to figure out how to write a script that backs up the printed documents every 6 hours. My question is this: How should I go about writing this script? My professor has decided for us to find this information on our own, and it has been very difficult to find some guidance on the internet.. Thank you in advanced for anyone who can help!!
I understand how to make the script run every 6 hours using the cron utility. But my question is how do I write this script? I am completely lost on the writing the script itself. So if a document were to be printed to a printer, how would I be able to write a script that backs whatever is printed off the printer?
Here was my train of thought: I wanted to maybe create a script so that every time something is printed, it goes into a folder where I can take that folder and back it up. Does this sound about right? Or are there log files that automatically do this and all I need to do is somehow get it from the log file?