![]() backuppc.cmd launches vshadow, and tells it to execute vsrsync.cmd.pre-cmd.vbs cleans up some files, launches “sleep.vbs” in the background (more on this later) and then launches “backuppc.cmd” in the background, and waits for the pid file to appear that signals that rsyncd has been launched.preusercmd.sh launches “pre-exec.cmd” on the Windows box.Before each backup, BackupPC has an option to call a local script first, waiting for that script to finish. (Note that this directory is hard-coded in a lot of the files.) Here’s a listing of that directory: Directory of C:\BackupPC Note that rsync does not need to be installed as a service, it actually gets loaded on-the-fly. ![]() Once all the pieces are assembled, I created a C:\BackupPC directory on the Windows box with all the necessary files. cwrsync, a Windows version of rsync (the “server” isn’t necessary).dosdev, a Windows program that maps drive letters to volumes.vshadow, a Windows program that creates and manages shadow copies.winexe, a *nix program for remotely executing commands on Windows systems.It took quite a bit of trial-and-error, so I’ll skip what didn’t work, and get straight to what actually does work. It should “just work” - if it’s too delicate, it’s not all that useful as a backup solution.Installation and footprint should be minimal.The solution should work with off-the-shelf components (i.e., no binaries or code).So, this can be handily used for rsync in order to make full backups, including every single file… in theory, anyway. The official Windows solution for XP and later is something called a “ volume shadow copy.” It’s probably far more complex than it possibly needs to be, but essentially, it creates a pseudo-volume for any actual volume, with the difference being that you can actually back up files on it. This problem isn’t unique to BackupPC, any attempt to back up or copy these files will fail, so most commercial backup systems have special “open file” clients to cope with it. For Windows, this also works beautifully, except that “open files” can’t be backed up at all. It doesn’t require any software on the systems it backs up at all, since it relies upon rsync and smbclient, and optionally ssh.įor *nix, this works beautifully. ![]() This isn’t specific to BackupPC by any means, but I’ll preface this with a brief explanation: BackupPC is a “set it and forget it” backup system driven from the server, that allows you to back up the entire network of *nix and Windows PCs. This post is probably still useful as documentation. Versions of the files below may be downloaded here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |