filesystems - Is there a way to automatically make a copy of a file each time it is updated in Unix? -
i have application updates files in unix server. since cannot modify application, there way can make sure these files copied before each update can have history of changes? there way/tool in unix can that?
if on linux (specifically) use inotify(7) facilities (perhaps via incrontab ...)
alternatively, might run periodically (thru crontab(5) entry) script doing make
particular makefile
(since gnu make
designed care timestamps) managing e.g. backups. or periodically run rsync command.
however, smells need revision control (also known version control system). recommend git; use before , after running application (e.g. write wrapping shell script doing that).
but there no universal solution (e.g. if monitored application keeping file descriptor opened long time, , write file little little...). should explain more happening , want ...
Comments
Post a Comment