hello, I'm relatively new to C++ (but not to programming) so I wasn't sure how to do this in C++. My brother wrote a bash script which is used primarily to transfer files between computers using rsync which he asked me to convert to C++ so that it can be integrated into the other aspects of the program, which were written in c++. I wasn't sure how I'd go about connecting to a server, establishing a link, and transferring the file. I've googled various aspects of it, but those just took me to programs I can buy (why buy when you can make it yourself, right?). Any help would be appreciated.

J

you could use librsync http://librsync.sourceforge.net/
to install (*BSD): as root, cd /usr/ports/net/librsync && make install clean or for binary package: as root, pkg_add -r librsync

Thanks for the response, that looks like it will accomplish my purpose nicely, and, oddly enough I also found what I was looking for in the first place, http://rsync.samba.org (why couldn't I find it before??...). Once again I thank you for the nudge in the right direction.

~J

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.