I have a Perl script to copy some config files from remote servers to the SVN repo and execute a commit. The config files on remote server are managed by different users. Sometimes the files are deleted by users. I want to make my script intelligent enough to detect that file as been deleted and able to issue a subsequent delete and report in SVN server too.
How can I programmatically detect deleted files?
The process I am using is
1) On remote server, the files are gzipping every midnight and placed at backup path.
2) on local server, script is using Net::SSH::Perl to copy the gzipped file and untar at svn repo path and execute a commit.
Lets say yesterday someone deleted one file (eg. aa.txt) and that will also not available in gzip backup file. I want to programmatically detect that file (aa.txt) before or after unzipping on local server and delete from svn too before commit.
Hope I am clear now.