Hey Guys,
is there a way to create a cronjob to watch over all changes in a specific directory, for example /home/user and send them, if there are any changes, to a server:confused:
Thanks
Sebi0815
Hey Guys,
is there a way to create a cronjob to watch over all changes in a specific directory, for example /home/user and send them, if there are any changes, to a server:confused:
Thanks
Sebi0815
Can't you just rsync everything with cronjob?
Thanks for the fast answer,
no, I really need a cronjob. This cronjob is part of a system for foresic-it-education, and the students should recognize that there is a cronjob that somehow does strange things and I hope they will recognize it if they check the crontab...
Well. You will have a cronjob that will sync two folders using rsync ... .
You can write a timestamp of each file to some temporary place. Or sha256 hashes. Next round you compare this and if this differs - do something (copy the file).
However rsync will do quite the same faster and better.
Ahhhh,
that should work. I didn't know rsync, but found a good tutorial... Thanks for your support...