Ultimate Goal: Have a cron-job run once per day to checkout a specific CVS, save them to a specific directory, and then finally compress that directory to .gz or .zip.
So I thought I had figured the CVS command needed to be run:
cvs :pserver:anonymous@cvs_server.com:/cvsroot/unixpathname checkout -P -d / project
I came up with that from this:
cvs checkout [-ANPRcflnps] [-r rev | -D date] [-d dir] [-j rev1] [-j rev2] [-k kopt] modules...
[indent]-A Reset any sticky tags/date/kopts.
-N Don't shorten module paths if -d specified.
-P Prune empty directories.
-R Process directories recursively.
-c "cat" the module database.
-f Force a head revision match if tag/date not found.
-l Local directory only, not recursive
-n Do not run module program (if any).
-p Check out files to standard output (avoids stickiness).
-s Like -c, but include module status.
-r rev Check out revision or tag. (implies -P) (is sticky)
-D date Check out revisions as of date. (implies -P) (is sticky)
-d dir Check out into dir instead of module name.
-k kopt Use RCS kopt -k option on checkout.
-j rev Merge in changes made between current revision and rev.[/indent]
viewable here
So obviously that doesn't do anything, but just give empty feedback. I've tried executing with exec(), system() and shell_exec() and none work.
Is the CVS command set up properly? If not, where did I go wrong, and how can I fix it?
And the final question: how would I go about zipping the files down? Would I just loop through that dir and add read each into the zip-file? Or is there an easier way? I was planning to use the gzip() function.
[edit]
In my finite wisdome, I even tried to separate each command and execute it. That doesn't work either.