Windows backup
I use xcopy in a backup.bat file (that must be run from the root of the backup drive) to backup three drives, like this:
@echo off
cd \
echo Backing up drive C
xcopy c:\*.* \backup\C\ /s /d /r /h /y /c /f /EXCLUDE:c:\exclude.txt
echo Backing up drive D
xcopy d:\*.* \backup\D\ /s /d /r /h /y /c /f /EXCLUDE:d:\exclude.txt
echo Backing up drive E
xcopy e:\*.* \backup\E\ /s /d /r /h /y /c /f /EXCLUDE:e:\exclude.txt
pause Any key to exit
The xcopy line is put together as follows:
xcopy sourcedir destdir switches /EXCLUDE exclusionsfile, where
sourcedir = main source directory
destdir = main backup directory
switches are as above (/s to copy subdirectories, /d to copy more recent files only, /r and /h to copy read-only and hidden files, /y to confirm automatically, /c to continue on errors (e.g. access denied), and /f to display full source and destination while copying).
The exclusions file consists of lines, each of which is an expression. If any line matches all or part of a file of directory in the source, that file/directory will be ignored.
To back up just your Documents directory, you might try:
xcopy "fullpathtoyourdocuments" \Documents\ /s /d /r /h /y /c /f
The quotes round fullpathtoyourdocuments are needed if there are any spaces in the path. (I don't have spaces, because I'm backing up from the root directory of each drive, and use the exclusions file to "deselect" unwanted files.)
It isn't open source, but xcopy comes free with Windows, and it has worked well for me on several machines.
Hope this may be of assistance.
vdal