Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
Michael Stowe wrote: Michael Stowe wrote: Your scripts run within a normal user which is in admin group? My problem, what is inexplicable for me, is that the at command will work from a vista command box but not from a ssh-session. Even thought both use the same account. Did you have to rebase cygwin within Windows7? I tried cygwin within the release canditate but it wasn't stable. The cygwin newsgroup told me I have to rebase all within Windows7. br Matthias -- Don't Panic Yes, a normal Admin user -- I don't use ssh at all, nor a full version of cygwin. It's documented here: http://www.goodjobsucking.com/?p=62 (There's a download link in there somewhere, if you're interested, but you'll need your own version of vshadow.exe.) Thanks Matthias -- Don't Panic -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
Matthias Meyer wrote at about 14:56:02 +0100 on Sunday, November 8, 2009: Hello Jeffrey, Did your script work in Vista too? I have not tried it under Vista, but I would like to get it to work there. One potential issue could be that shadow mounts (and vshadow.exe) might have a different interface. Feel free to look into that and if you get back to me on differences, I will try to fix the code. Also, make sure you have the right version of vshadow for Vista. My scripts are quite different, but they do work under Vista and Windows 7 without changes; a different version of vshadow is required, but that's the extent of the changes required. I have to imagine the same would be the case for your scripts. Within a ssh-session I try at 14:39 attrib in Vista but I get an access denied. I'm not sure what you are doing here. Are you trying to test whether 'at' works from an ssh session? I see no reason why it shouldn't. But running attrib wouldn't do much unless you piped the output elsewhere. Check to make sure your path and permissions are right. If I try it from a vista command box it will work. In both, ssh-session as well as vista command box, I use the same user. If you are interested, I would be happy to send you updated versions of my scripts... -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
Hi, Can you please post a download link for all files ? -- Thanks and Regards, Anand Gupta Jeffrey J. Kosowsky wrote: If you are interested, I would be happy to send you updated versions of my scripts... -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
Jeffrey J. Kosowsky wrote: Matthias Meyer wrote at about 14:56:02 +0100 on Sunday, November 8, 2009: Hello Jeffrey, Did your script work in Vista too? I have not tried it under Vista, but I would like to get it to work there. One potential issue could be that shadow mounts (and vshadow.exe) might have a different interface. Feel free to look into that and if you get back to me on differences, I will try to fix the code. Also, make sure you have the right version of vshadow for Vista. I have the vista version of vshadow. Within a ssh-session I try at 14:39 attrib in Vista but I get an access denied. I'm not sure what you are doing here. Are you trying to test whether 'at' works from an ssh session? I see no reason why it shouldn't. But running attrib wouldn't do much unless you piped the output elsewhere. Check to make sure your path and permissions are right. This is only a test. at 14:39 attrib test.txt would be better. If I try it from a vista command box it will work. In both, ssh-session as well as vista command box, I use the same user. If you are interested, I would be happy to send you updated versions of my scripts... Thanks. But I have no fully cygwin installation. Some programmes you need (e.g. dirname) are not installed on my windoze. I just try to steal your ideas ;-) br Matthias -- Don't Panic -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
Michael Stowe wrote: Matthias Meyer wrote at about 14:56:02 +0100 on Sunday, November 8, 2009: Hello Jeffrey, Did your script work in Vista too? I have not tried it under Vista, but I would like to get it to work there. One potential issue could be that shadow mounts (and vshadow.exe) might have a different interface. Feel free to look into that and if you get back to me on differences, I will try to fix the code. Also, make sure you have the right version of vshadow for Vista. My scripts are quite different, but they do work under Vista and Windows 7 without changes; a different version of vshadow is required, but that's the extent of the changes required. I have to imagine the same would be the case for your scripts. Your scripts run within a normal user which is in admin group? My problem, what is inexplicable for me, is that the at command will work from a vista command box but not from a ssh-session. Even thought both use the same account. Did you have to rebase cygwin within Windows7? I tried cygwin within the release canditate but it wasn't stable. The cygwin newsgroup told me I have to rebase all within Windows7. br Matthias -- Don't Panic -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
Michael Stowe wrote: Your scripts run within a normal user which is in admin group? My problem, what is inexplicable for me, is that the at command will work from a vista command box but not from a ssh-session. Even thought both use the same account. Did you have to rebase cygwin within Windows7? I tried cygwin within the release canditate but it wasn't stable. The cygwin newsgroup told me I have to rebase all within Windows7. br Matthias -- Don't Panic Yes, a normal Admin user -- I don't use ssh at all, nor a full version of cygwin. It's documented here: http://www.goodjobsucking.com/?p=62 (There's a download link in there somewhere, if you're interested, but you'll need your own version of vshadow.exe.) -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
Hello Jeffrey, Did your script work in Vista too? Within a ssh-session I try at 14:39 attrib in Vista but I get an access denied. If I try it from a vista command box it will work. In both, ssh-session as well as vista command box, I use the same user. Thanks Matthias -- Don't Panic -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
Matthias Meyer wrote at about 14:56:02 +0100 on Sunday, November 8, 2009: Hello Jeffrey, Did your script work in Vista too? I have not tried it under Vista, but I would like to get it to work there. One potential issue could be that shadow mounts (and vshadow.exe) might have a different interface. Feel free to look into that and if you get back to me on differences, I will try to fix the code. Also, make sure you have the right version of vshadow for Vista. Within a ssh-session I try at 14:39 attrib in Vista but I get an access denied. I'm not sure what you are doing here. Are you trying to test whether 'at' works from an ssh session? I see no reason why it shouldn't. But running attrib wouldn't do much unless you piped the output elsewhere. Check to make sure your path and permissions are right. If I try it from a vista command box it will work. In both, ssh-session as well as vista command box, I use the same user. If you are interested, I would be happy to send you updated versions of my scripts... -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
hga wrote at about 13:37:38 -0500 on Sunday, November 1, 2009: It looks like SourceForge.net did a mass migration of pages in early August and they borked attached files such as gifs and these useful scripts (also, who can edit is restricted on the wiki). A fair amount of time with Google failed to find copies; could someone post them to this list/forum and/or put them up somewhere else on the net? Not sure if you are referring to the scripts I posted earlier this year. But here are updated versions of the script (shadowmountrsync) and short DOS helper program (shadowexec.cmd) that I wrote. -- #!/bin/bash # Shadowmountrsync # Copyright Jeffrey J. Kosowsky 2008, 2009 # Version 0.4.0 (November 2009) ## # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # http://www.gnu.org/licenses/. ## # Description: automagically sets up (and takes down) shadow copies, # shadow mounts, and the rsyncd daemon to allow you to seamlessly # rsync to shadow copies of all the active modules in your current # rsyncd.conf file WITHOUT any configuration changes or added settings # to your existing setup non-shadow copy rsyncd setup. In particular, # the program determines which shadows to create based upon the # modules in your existing /etc/rsyncd.conf combined with what mounts # actually exist. # Usage: (see below for more detailed usage) # shadowmountrsync # Sets up shadow copies, mounts shadows, and launches rsync # shadowmountrsync -d # Terminates rsync, kills shadow copies, unmounts, and cleans up # # If using as pre/post commands in BackupPC, try something like: #$Conf{DumpPreUserCmd} = #'$sshPath -q -x -l kosowsky $hostIP /usr/local/bin/shadowmountrsync'; # #$Conf{DumpPostUserCmd} = #'$sshPath -q -x -l kosowsky $hostIP /usr/local/bin/vshadow-scripts/shadowmountrsync -d'; # # NOTE: this doesn't make sense for the Restore commands since clearly # shadow copies CANNOT be restored to since by definition they are # read-only # # WARNING: This is beta software which has only been tested to work so # far on my own XP sp3 setup in a limited number of situations. In # particular, it may not work on other Windows versions since the # nature of shadow copy (and vshadow and dosdev) in particular has # changed radically for Windows versions both prior to and post # WinXP. Given the nature of shadow copy, it *should* (theoretically) # not be capable of doing anything destructive to the source disk, so # it's likely that the worse that would happen is that your backups # would fail (or potentially be incomplete/corrupted). Feedback, bug # reports, and enhancements are always welcome!!! # # NOTE: both this script and the companion 1-liner 'shadowexec.cmd' # file MUST be stored in the SAME directory on each Windows CLIENT # machine that you want to backup using volume shadow service # (VSS). Also, both files need to be in the $ADMINGRP group (typically # 'Administrators' or 'root') group and set with group permissions +rx # # REQUIRES: # vshadow.exe # Available from Microsoft downloads (make sure you get the # right version for your Windows OS release!) # http://www.microsoft.com/downloads/details.aspx?FamilyID=0B4F56E4-0CCC-4626-826A-ED2C4C95C871displaylang=en # # dosdev.exe # Again available from Microsoft downloads (as part of their # reporting tools). Also, be careful of the version since # different verssions seem to have different command line # interfaces. I obtained my copy from: #http://www.ltr-data.se/files/dosdev.zip # # cygwin (a base install should be sufficient) # This or an equivalent unix-like environment on Windows is # required to provide the Bash shell and basic gnu utilities # such as sed, date, cat, etc. As detailed below, you should # also install the sshd (ssh server) and rsync packages. # # # rsyncd (may be easiest to use the cygwin package version) # Note rsyncd does not need to be set up as a windows or cygwin # service since the script will launch and kill the rsyncd daemon # as appropriate # # sshd (i.e. ssh server - use the cygwin version) # This is required to allow the Backuppc server
[BackupPC-users] UPDATED: Fully automated script for creating shadow copies a
It looks like SourceForge.net did a mass migration of pages in early August and they borked attached files such as gifs and these useful scripts (also, who can edit is restricted on the wiki). A fair amount of time with Google failed to find copies; could someone post them to this list/forum and/or put them up somewhere else on the net? Thanks in advance. - Harold +-- |This was sent by backupcent...@ancell-ent.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Hi Dave, Have you tried to use the script for multiple drives on the same pc ? Any luck on that part ? Thanks and Regards, Anand Gupta Original Message Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creatingshadow copies and launching rsyncd From: David Lasker d...@altosdesign.com To: backuppc-users@lists.sourceforge.net Cc: morto...@dgrmm.net Date: Thu Apr 2 23:52:06 2009 I recently installed both BackupPC and Jeffrey's script, so I feel your pain :-) I just updated the wiki at http://backuppc.wiki.sourceforge.net/User+Scripts+-+Client+-+Windows+VSS with a list of prerequisites, and some usage notes based on my own experience. I also uploaded Jeffrey's latest version of the script. David, once you get it going, feel free to update the wiki based on your own experience. Yell if you have more problems... Hope that helps... Dave -Original Message- From: David Morton [mailto:morto...@dgrmm.net] Sent: Wednesday, April 01, 2009 6:42 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd Getting this installed still seems a little advanced - I'm not sure where all the pieces go. I'm sure I'm not the only one who needs a little more instruction. It seems to me that if this works well, it should be the default way to handle windows - looking at the logs I see that I'm currently always missing a few files due to locks. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Sorry I have not tried multiple drives. I can see there is code in the script to support that, but I haven't used it. Jeffrey, can you comment on your use of this feature? Thanks. Dave P.S. If you haven't seen it already, please take a look at the recently-created wiki page for this script: http://backuppc.wiki.sourceforge.net/User+Scripts+-+Client+-+Windows+VSS Feel free to edit it with your own experience. From: Anand Gupta [mailto:anand...@gmail.com] Sent: Saturday, April 04, 2009 1:50 AM To: General list for user discussion, questions and support Cc: morto...@dgrmm.net Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd Hi Dave, Have you tried to use the script for multiple drives on the same pc ? Any luck on that part ? Thanks and Regards, Anand Gupta Original Message Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd From: David Lasker mailto:d...@altosdesign.com d...@altosdesign.com To: backuppc-users@lists.sourceforge.net Cc: morto...@dgrmm.net Date: Thu Apr 2 23:52:06 2009 I recently installed both BackupPC and Jeffrey's script, so I feel your pain :-) I just updated the wiki at http://backuppc.wiki.sourceforge.net/User+Scripts+-+Client+-+Windows+VSS with a list of prerequisites, and some usage notes based on my own experience. I also uploaded Jeffrey's latest version of the script. David, once you get it going, feel free to update the wiki based on your own experience. Yell if you have more problems... Hope that helps... Dave -Original Message- From: David Morton [mailto:morto...@dgrmm.net] Sent: Wednesday, April 01, 2009 6:42 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd Getting this installed still seems a little advanced - I'm not sure where all the pieces go. I'm sure I'm not the only one who needs a little more instruction. It seems to me that if this works well, it should be the default way to handle windows - looking at the logs I see that I'm currently always missing a few files due to locks. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Anand Gupta wrote at about 14:20:23 +0530 on Saturday, April 4, 2009: Hi Dave, Have you tried to use the script for multiple drives on the same pc ? Any luck on that part ? Thanks and Regards, Anand Gupta The script by design will automatically create shadow copies for all drives that you have set up in your rsyncd.conf file and that are actually mounted. You can restrict this list further using the SHADOWDRIVES variable if you don't want shadow copies of all mounted drives listed in rsyncd.conf. Original Message Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creatingshadow copies and launching rsyncd From: David Lasker d...@altosdesign.com To: backuppc-users@lists.sourceforge.net Cc: morto...@dgrmm.net Date: Thu Apr 2 23:52:06 2009 I recently installed both BackupPC and Jeffrey's script, so I feel your pain :-) I just updated the wiki at http://backuppc.wiki.sourceforge.net/User+Scripts+-+Client+-+Windows+VSS with a list of prerequisites, and some usage notes based on my own experience. I also uploaded Jeffrey's latest version of the script. David, once you get it going, feel free to update the wiki based on your own experience. Yell if you have more problems... Hope that helps... Dave -Original Message- From: David Morton [mailto:morto...@dgrmm.net] Sent: Wednesday, April 01, 2009 6:42 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd Getting this installed still seems a little advanced - I'm not sure where all the pieces go. I'm sure I'm not the only one who needs a little more instruction. It seems to me that if this works well, it should be the default way to handle windows - looking at the logs I see that I'm currently always missing a few files due to locks. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- -- -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
David Lasker wrote at about 08:50:51 -0700 on Saturday, April 4, 2009: Sorry I have not tried multiple drives. I can see there is code in the script to support that, but I haven't used it. Jeffrey, can you comment on your use of this feature? As alluded to in my previous post, the idea of the script is to make the setup of shadow drives transparent to the user in that the script uses rsyncd.conf to see which drives you are potentially trying to rsync. It then checks which drives are actually mounted and compares those drives against the $SHADOWDRIVES variable (which by default is set to A-Z - all drives). Shadow drives are then set up against all drives that satisfy the above checks. So, in summary, the script sets up shadow drives for all relevant mounted drives that are rsyncable unless they are excluded via the $SHADOWDRIVES variable. Thanks. Dave P.S. If you haven't seen it already, please take a look at the recently-created wiki page for this script: http://backuppc.wiki.sourceforge.net/User+Scripts+-+Client+-+Windows+VSS Feel free to edit it with your own experience. From: Anand Gupta [mailto:anand...@gmail.com] Sent: Saturday, April 04, 2009 1:50 AM To: General list for user discussion, questions and support Cc: morto...@dgrmm.net Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd Hi Dave, Have you tried to use the script for multiple drives on the same pc ? Any luck on that part ? Thanks and Regards, Anand Gupta Original Message Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd From: David Lasker mailto:d...@altosdesign.com d...@altosdesign.com To: backuppc-users@lists.sourceforge.net Cc: morto...@dgrmm.net Date: Thu Apr 2 23:52:06 2009 I recently installed both BackupPC and Jeffrey's script, so I feel your pain :-) I just updated the wiki at http://backuppc.wiki.sourceforge.net/User+Scripts+-+Client+-+Windows+VSS with a list of prerequisites, and some usage notes based on my own experience. I also uploaded Jeffrey's latest version of the script. David, once you get it going, feel free to update the wiki based on your own experience. Yell if you have more problems... Hope that helps... Dave -Original Message- From: David Morton [mailto:morto...@dgrmm.net] Sent: Wednesday, April 01, 2009 6:42 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd Getting this installed still seems a little advanced - I'm not sure where all the pieces go. I'm sure I'm not the only one who needs a little more instruction. It seems to me that if this works well, it should be the default way to handle windows - looking at the logs I see that I'm currently always missing a few files due to locks. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
David Morton wrote at about 23:40:25 -0500 on Wednesday, April 1, 2009: Jeffrey J. Kosowsky wrote: I guess the current comments assume that someone is reasonably familiar with cygwin/gnu/bash. Anyone can feel free to add more Well, no, that's not the problem - It's just that it wasn't listed as a pre-req. I wasn't even sure which host the script was supposed to run on! It was bash, which makes me think a unix host, but it's shadow services, which makes me think windows... My current rsync solution doesn't need all of cygwin... Anyway, while I may suspect a few things, it's not necessarily obvious... Especially since I'm not very familiar with windows. I don't think it would be too hard to outline a few more details. Yes, a pure rsyncd solution would not require ssh. However, if you want to run any scripts on the client then you need some type of remote shell to launch those scripts. And ssh is pretty simple and secure for that. But the bottom line is that you do need ssh server along with a base cygwin installation to make this work. Plus the advantage of cygwin in general is that it does allow you to do all types of unix-like stuff on windows. In general, your comments in fact have been very helpful in that you are pointing out details that I didn't realize were non-obvious or non-standard. For example, I wouldn't have remembered to think of ssh server as a requirement. So, feel free to keep sending me comments and questions - and I will add them to my comments at the head of the script. I am attaching an updated version of the shadowmountrsync script with some additional explanation of the requirements. Please review them and let me know if there are any specific gaps that are missing. Note these comments are not intended to be a full tutorial of how to install cygwin or setup ssh. I will leave that for others to provide as a separate wikki-type documentation if they think it would be helpful and have the time to write it. shadowmountrsync Description: Binary data If I can figure out where all the pieces go, I'll write up a howto. I guess this means I need the client machine to be a ssh server to receive the commands? [GNUPG:] ERRSIG 532DF43833E4CE5D 17 2 01 1238647222 9 [GNUPG:] NO_PUBKEY 532DF43833E4CE5D -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
2009/4/2 Jeffrey J. Kosowsky backu...@kosowsky.org In general, your comments in fact have been very helpful in that you are pointing out details that I didn't realize were non-obvious or non-standard. For example, I wouldn't have remembered to think of ssh server as a requirement. So, feel free to keep sending me comments and questions - and I will add them to my comments at the head of the script. First couple of lines: # Shadowmountrsync # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.3.3 (April 2009) Copyright? By default I think that means Copyright all rights reserved, you aren't legally allowing others to modify and redistribute it. Since you posted an earlier version to sourceforge, shouldn't it have a GPL version 2 or 3 or something? The subject of the thread is Fully automated script for creating shadow copies and launching rsyncd. Perhaps someone could package it like cwrsync and add a GUI configuration to it, then it would be closer to fully automatic installation. And that brings up the question what might be the best way to create a automatic install and GUI config tool? Thanks, Chuck -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Chuck Peters wrote at about 10:12:40 -0400 on Thursday, April 2, 2009: 2009/4/2 Jeffrey J. Kosowsky backu...@kosowsky.org In general, your comments in fact have been very helpful in that you are pointing out details that I didn't realize were non-obvious or non-standard. For example, I wouldn't have remembered to think of ssh server as a requirement. So, feel free to keep sending me comments and questions - and I will add them to my comments at the head of the script. First couple of lines: # Shadowmountrsync # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.3.3 (April 2009) Copyright? By default I think that means Copyright all rights reserved, you aren't legally allowing others to modify and redistribute it. Since you posted an earlier version to sourceforge, shouldn't it have a GPL version 2 or 3 or something? That works for me. What it the (minimal) amount of appropriate text that I need to add for that to work. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
See this link: http://www.gnu.org/licenses/gpl-howto.html Dave -Original Message- From: Jeffrey J. Kosowsky [mailto:backu...@kosowsky.org] Sent: Thursday, April 02, 2009 8:27 AM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd Chuck Peters wrote at about 10:12:40 -0400 on Thursday, April 2, 2009: 2009/4/2 Jeffrey J. Kosowsky backu...@kosowsky.org In general, your comments in fact have been very helpful in that you are pointing out details that I didn't realize were non-obvious or non-standard. For example, I wouldn't have remembered to think of ssh server as a requirement. So, feel free to keep sending me comments and questions - and I will add them to my comments at the head of the script. First couple of lines: # Shadowmountrsync # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.3.3 (April 2009) Copyright? By default I think that means Copyright all rights reserved, you aren't legally allowing others to modify and redistribute it. Since you posted an earlier version to sourceforge, shouldn't it have a GPL version 2 or 3 or something? That works for me. What it the (minimal) amount of appropriate text that I need to add for that to work. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
I recently installed both BackupPC and Jeffrey's script, so I feel your pain :-) I just updated the wiki at http://backuppc.wiki.sourceforge.net/User+Scripts+-+Client+-+Windows+VSS with a list of prerequisites, and some usage notes based on my own experience. I also uploaded Jeffrey's latest version of the script. David, once you get it going, feel free to update the wiki based on your own experience. Yell if you have more problems... Hope that helps... Dave -Original Message- From: David Morton [mailto:morto...@dgrmm.net] Sent: Wednesday, April 01, 2009 6:42 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd Getting this installed still seems a little advanced - I'm not sure where all the pieces go. I'm sure I'm not the only one who needs a little more instruction. It seems to me that if this works well, it should be the default way to handle windows - looking at the logs I see that I'm currently always missing a few files due to locks. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Chuck Peters wrote: The subject of the thread is Fully automated script for creating shadow copies and launching rsyncd. Perhaps someone could package it like cwrsync and add a GUI configuration to it, then it would be closer to fully automatic installation. And that brings up the question what might be the best way to create a automatic install and GUI config tool? That's the eventual direction I'd vote to see this go. Is there a source repo yet, other than the wiki? I'd suggest github myself. I could set it up if there's agreement... -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck Peters wrote: 2009/4/2 Jeffrey J. Kosowsky backu...@kosowsky.org mailto:backu...@kosowsky.org In general, your comments in fact have been very helpful in that you are pointing out details that I didn't realize were non-obvious or non-standard. For example, I wouldn't have remembered to think of ssh server as a requirement. So, feel free to keep sending me comments and questions - and I will add them to my comments at the head of the script. First couple of lines: # Shadowmountrsync # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.3.3 (April 2009) Copyright? By default I think that means Copyright all rights reserved, you aren't legally allowing others to modify and redistribute it. Since you posted an earlier version to sourceforge, shouldn't it have a GPL version 2 or 3 or something? The subject of the thread is Fully automated script for creating shadow copies and launching rsyncd. Perhaps someone could package it like cwrsync and add a GUI configuration to it, then it would be closer to fully automatic installation. And that brings up the question what might be the best way to create a automatic install and GUI config tool? Thhe best solution I've found when I was looking to package something in the past is http://nsis.sourceforge.net/Main_Page It is a GPL software for windows which allows to create a setup.exe which will install software for you. Very flexible and powerful, though I only used the basic features and then gave up due to lack of time. Hope that helps PS, the downside is you will now distribute a exe file, which is harder for people to be sure it isn't malicious (I suppose they could still download and install manually the current method though. Regards, Adam -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknVKFIACgkQGyoxogrTyiUukQCgpOamte+UBv6KWXzDQg7qk9Nn 72AAn2OGXU2+QVfhzMbIlOz/c9WLmHni =GrDA -END PGP SIGNATURE- -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
We use WPKG http://wpkg.org/, which automatically handles, installs, updates and removal of software, as well as any other commands for creating shares, running netsh commands to set passwords, or add software to the Windows firewall, etc. There are many Silent Install working examples as well: http://wpkg.org/Category:Silent_Installers -obj Adam Goryachev said the following on 04/02/2009 05:04 PM: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck Peters wrote: 2009/4/2 Jeffrey J. Kosowsky backu...@kosowsky.org mailto:backu...@kosowsky.org In general, your comments in fact have been very helpful in that you are pointing out details that I didn't realize were non-obvious or non-standard. For example, I wouldn't have remembered to think of ssh server as a requirement. So, feel free to keep sending me comments and questions - and I will add them to my comments at the head of the script. First couple of lines: # Shadowmountrsync # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.3.3 (April 2009) Copyright? By default I think that means Copyright all rights reserved, you aren't legally allowing others to modify and redistribute it. Since you posted an earlier version to sourceforge, shouldn't it have a GPL version 2 or 3 or something? The subject of the thread is Fully automated script for creating shadow copies and launching rsyncd. Perhaps someone could package it like cwrsync and add a GUI configuration to it, then it would be closer to fully automatic installation. And that brings up the question what might be the best way to create a automatic install and GUI config tool? Thhe best solution I've found when I was looking to package something in the past is http://nsis.sourceforge.net/Main_Page It is a GPL software for windows which allows to create a setup.exe which will install software for you. Very flexible and powerful, though I only used the basic features and then gave up due to lack of time. Hope that helps PS, the downside is you will now distribute a exe file, which is harder for people to be sure it isn't malicious (I suppose they could still download and install manually the current method though. Regards, Adam -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknVKFIACgkQGyoxogrTyiUukQCgpOamte+UBv6KWXzDQg7qk9Nn 72AAn2OGXU2+QVfhzMbIlOz/c9WLmHni =GrDA -END PGP SIGNATURE- -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
On Thu, Apr 2, 2009 at 11:27 AM, Jeffrey J. Kosowsky backu...@kosowsky.org wrote: Chuck Peters wrote at about 10:12:40 -0400 on Thursday, April 2, 2009: First couple of lines: # Shadowmountrsync # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.3.3 (April 2009) Copyright? By default I think that means Copyright all rights reserved, you aren't legally allowing others to modify and redistribute it. Since you posted an earlier version to sourceforge, shouldn't it have a GPL version 2 or 3 or something? That works for me. What it the (minimal) amount of appropriate text that I need to add for that to work. I suggest saying something like: # Shadowmountrsync # Version 0.3.3 (April 2009) # Copyright Jeffrey J. Kosowsky December 2008, 2009 # Copying, redistribution and modification are allowed under the terms of Version 3 # of the GPL or any later version. The GPL can be found at many locations on the Internet, # or libraies. aka. http://www.gnu.org/licenses/gpl-3.0.txt David Lasker mentioned http://www.gnu.org/licenses/gpl-howto.html. It is 20 years old and looks like it was written by a lawyer. You might want to also take a look at the FAQ. http://www.gnu.org/licenses/gpl-faq.html Below are two of the FAQ's which seem relevant to Shadowmountrsync and comment on them. From the FAQ: *Why does the GPL require including a copy of the GPL with every copy of the program?* Including a copy of the license with the work is vital so that everyone who gets a copy of the program can know what his rights are. It might be tempting to include a URL that refers to the license, instead of the license itself. But you cannot be sure that the URL will still be valid, five years or ten years from now. Twenty years from now, URLs as we know them today may no longer exist. The only way to make sure that people who have copies of the program will continue to be able to see the license, despite all the changes that will happen in the network, is to include a copy of the license in the program. *What if the work is not much longer than the license itself?* If a single program is that short, you may as well use a simple all-permissive license for it, rather than the GNU GPL. Coincidently the FAQ mentions a URL may not be available in 20 years and the document on how to apply the GPL is 20 years old. I think it is reasonable to argue that the Internet will be around and thousands if not millions of copies of the GPL will be available even if a particualr URL has changed. The Libarary of Congress and other libraries will also have paper and electronic copies of the GPL. Shadowmountrsync is currently more or less as long as the GPL and the FAQ says you might use a simple all-permissive license for it. I would argue that Shadowmountrsync appears to be sigificant and useful enough that a GPL is a good idea. Modified versions might be included with backuppc or other backup programs in the future and if I wrote the program I would want to benefit from the modifications the GPL allows. With all that said including a copy of the GPL at a latter date would be a good idea. Thanks, Chuck -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Chuck Peters wrote at about 23:25:06 -0400 on Thursday, April 2, 2009: On Thu, Apr 2, 2009 at 11:27 AM, Jeffrey J. Kosowsky backu...@kosowsky.org wrote: Chuck Peters wrote at about 10:12:40 -0400 on Thursday, April 2, 2009: First couple of lines: # Shadowmountrsync # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.3.3 (April 2009) Copyright? By default I think that means Copyright all rights reserved, you aren't legally allowing others to modify and redistribute it. Since you posted an earlier version to sourceforge, shouldn't it have a GPL version 2 or 3 or something? That works for me. What it the (minimal) amount of appropriate text that I need to add for that to work. I suggest saying something like: # Shadowmountrsync # Version 0.3.3 (April 2009) # Copyright Jeffrey J. Kosowsky December 2008, 2009 # Copying, redistribution and modification are allowed under the terms of Version 3 # of the GPL or any later version. The GPL can be found at many locations on the Internet, # or libraies. aka. http://www.gnu.org/licenses/gpl-3.0.txt David Lasker mentioned http://www.gnu.org/licenses/gpl-howto.html. It is 20 years old and looks like it was written by a lawyer. You might want to also take a look at the FAQ. http://www.gnu.org/licenses/gpl-faq.html Below are two of the FAQ's which seem relevant to Shadowmountrsync and comment on them. From the FAQ: *Why does the GPL require including a copy of the GPL with every copy of the program?* Including a copy of the license with the work is vital so that everyone who gets a copy of the program can know what his rights are. It might be tempting to include a URL that refers to the license, instead of the license itself. But you cannot be sure that the URL will still be valid, five years or ten years from now. Twenty years from now, URLs as we know them today may no longer exist. The only way to make sure that people who have copies of the program will continue to be able to see the license, despite all the changes that will happen in the network, is to include a copy of the license in the program. *What if the work is not much longer than the license itself?* If a single program is that short, you may as well use a simple all-permissive license for it, rather than the GNU GPL. Coincidently the FAQ mentions a URL may not be available in 20 years and the document on how to apply the GPL is 20 years old. I think it is reasonable to argue that the Internet will be around and thousands if not millions of copies of the GPL will be available even if a particualr URL has changed. The Libarary of Congress and other libraries will also have paper and electronic copies of the GPL. Shadowmountrsync is currently more or less as long as the GPL and the FAQ says you might use a simple all-permissive license for it. I would argue that Shadowmountrsync appears to be sigificant and useful enough that a GPL is a good idea. Modified versions might be included with backuppc or other backup programs in the future and if I wrote the program I would want to benefit from the modifications the GPL allows. With all that said including a copy of the GPL at a latter date would be a good idea. Thanks for all the in input and references to the GPL. I included the short GPL v3 reference recommended in the howto that I believe David Lasker referenced (thanks!). For me referencing the URL rather than including the full text is good enough since I am most concerned with technically having a license in place that allows others to use, modify, and distribute it fairly. I'm less concerned with the legal minutae and hypotheticals about URLs vanishing, etc. Hopefully the updated version including the GPL and a few additional explanatory comments will be posted soon to the Wiki. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
I'm a bit torn here. On the one hand, I want to encourage as broad usage as possible since I think it can be helpful to many people and it was not trivial (at least for me) to figure out the various 'recursion' tricks and hacks to make this all work on XP. On the other hand, I don't have the time to figure out all the packaging details. In fact, I'm not sure where you start or stop and there may even be some legal questions. For example, do you include the base cygwin in the package? what about ssh and rsync? also, I'm not sure I would legally have the right to package up dosdev.exe or vshadow.exe since they are Microsoft programs. Finally, personally, I prefer the control of manually installing scripts and usually only use an installer when using complicated programs that require multiple registry changes. So, I guess I would fully support anybody interested in creating an installer for this program but personally I am probably unlikely to lead the effort. I am of course always willing to help identify and fix bugs, add targeted enhancements, and answer specific questions regarding the program. I hope that is a reasonable compromise approach. Regards, Jeff o...@jltechinc.com wrote at about 17:35:11 -0400 on Thursday, April 2, 2009: We use WPKG http://wpkg.org/, which automatically handles, installs, updates and removal of software, as well as any other commands for creating shares, running netsh commands to set passwords, or add software to the Windows firewall, etc. There are many Silent Install working examples as well: http://wpkg.org/Category:Silent_Installers -obj Adam Goryachev said the following on 04/02/2009 05:04 PM: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck Peters wrote: 2009/4/2 Jeffrey J. Kosowsky backu...@kosowsky.org mailto:backu...@kosowsky.org In general, your comments in fact have been very helpful in that you are pointing out details that I didn't realize were non-obvious or non-standard. For example, I wouldn't have remembered to think of ssh server as a requirement. So, feel free to keep sending me comments and questions - and I will add them to my comments at the head of the script. First couple of lines: # Shadowmountrsync # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.3.3 (April 2009) Copyright? By default I think that means Copyright all rights reserved, you aren't legally allowing others to modify and redistribute it. Since you posted an earlier version to sourceforge, shouldn't it have a GPL version 2 or 3 or something? The subject of the thread is Fully automated script for creating shadow copies and launching rsyncd. Perhaps someone could package it like cwrsync and add a GUI configuration to it, then it would be closer to fully automatic installation. And that brings up the question what might be the best way to create a automatic install and GUI config tool? Thhe best solution I've found when I was looking to package something in the past is http://nsis.sourceforge.net/Main_Page It is a GPL software for windows which allows to create a setup.exe which will install software for you. Very flexible and powerful, though I only used the basic features and then gave up due to lack of time. Hope that helps PS, the downside is you will now distribute a exe file, which is harder for people to be sure it isn't malicious (I suppose they could still download and install manually the current method though. Regards, Adam -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknVKFIACgkQGyoxogrTyiUukQCgpOamte+UBv6KWXzDQg7qk9Nn 72AAn2OGXU2+QVfhzMbIlOz/c9WLmHni =GrDA -END PGP SIGNATURE- -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Jeffrey J. Kosowsky wrote: David Morton wrote at about 14:15:57 -0500 on Monday, March 30, 2009: David Lasker wrote: I was trying to figure out the best way to deploy VSS with BackupPC on my Windows XP PCs, and found this wonderful script. Thank you so much Jeffrey for sharing it! Is it possible to do VSS on XP Home? I have a location that I'd like to do VSS and getting them upgraded to something better has been/is going to be a long process. I use my script all the time on XP Home. Getting this installed still seems a little advanced - I'm not sure where all the pieces go. I'm sure I'm not the only one who needs a little more instruction. It seems to me that if this works well, it should be the default way to handle windows - looking at the logs I see that I'm currently always missing a few files due to locks. I finally found the files on the wiki: http://backuppc.wiki.sourceforge.net/User+Scripts+-+Client+-+Windows+VSS and vshadow tools I downloaded from: http://www.microsoft.com/downloads/details.aspx?FamilyID=0b4f56e4-0ccc-4626-826a-ed2c4c95c871displaylang=en The Volume Shadow Copy Service SDK 7.2 installs in: c:\Program Files\Microsoft\VSSSDK72 (with various copies of vshadow.exe sprinkled around) and dosdev.exe from (as mentioned in the source): http://www.ltr-data.se/files/dosdev.zip What else is needed? Is a full cygwin install needed? Where do we put these files? -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
While not perfect, I believe that the script fairly well documents what you need to do -- just read through the comments at the head of the script and look through the Variables section to see what is defined and whether it matches what you have on your system. You can put the programs referenced in the Variables section anywhere you want as long as they are in the default path. If the programs are not in your default, then you can use the full path name rather than the program name in the variables section of the script. The script is a BASH script and therefor requires bash along with a number of basic gnu routines such as grep, sed, date. These probably are all part of a base cygwin install (though you of course also need rsyncd) but I can't 100% guarantee that since I haven't tested it on a base install. I will add a couple of lines summarizing the above to the head of the script but to be honest beyond that I'm not sure how much more to add since it all depends on the skill of the user. I guess the current comments assume that someone is reasonably familiar with cygwin/gnu/bash. Anyone can feel free to add more documentation based on their personal installation experiences to the Wiki - personally, I wouldn't know where to start and don't have the time right now to do more. I am of course willing to answer specific questions via the email list. David Morton wrote at about 20:42:21 -0500 on Wednesday, April 1, 2009: Jeffrey J. Kosowsky wrote: David Morton wrote at about 14:15:57 -0500 on Monday, March 30, 2009: David Lasker wrote: I was trying to figure out the best way to deploy VSS with BackupPC on my Windows XP PCs, and found this wonderful script. Thank you so much Jeffrey for sharing it! Is it possible to do VSS on XP Home? I have a location that I'd like to do VSS and getting them upgraded to something better has been/is going to be a long process. I use my script all the time on XP Home. Getting this installed still seems a little advanced - I'm not sure x where all the pieces go. I'm sure I'm not the only one who needs a little more instruction. It seems to me that if this works well, it should be the default way to handle windows - looking at the logs I see that I'm currently always missing a few files due to locks. I finally found the files on the wiki: http://backuppc.wiki.sourceforge.net/User+Scripts+-+Client+-+Windows+VSS and vshadow tools I downloaded from: http://www.microsoft.com/downloads/details.aspx?FamilyID=0b4f56e4-0ccc-4626-826a-ed2c4c95c871displaylang=en The Volume Shadow Copy Service SDK 7.2 installs in: c:\Program Files\Microsoft\VSSSDK72 (with various copies of vshadow.exe sprinkled around) and dosdev.exe from (as mentioned in the source): http://www.ltr-data.se/files/dosdev.zip What else is needed? Is a full cygwin install needed? Where do we put these files? -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey J. Kosowsky wrote: I guess the current comments assume that someone is reasonably familiar with cygwin/gnu/bash. Anyone can feel free to add more Well, no, that's not the problem - It's just that it wasn't listed as a pre-req. I wasn't even sure which host the script was supposed to run on! It was bash, which makes me think a unix host, but it's shadow services, which makes me think windows... My current rsync solution doesn't need all of cygwin... Anyway, while I may suspect a few things, it's not necessarily obvious... Especially since I'm not very familiar with windows. I don't think it would be too hard to outline a few more details. If I can figure out where all the pieces go, I'll write up a howto. I guess this means I need the client machine to be a ssh server to receive the commands? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknUQbYACgkQUy30ODPkzl20dwCg1AAFznDjKIgK2frH6hkyOfew 7swAnA/0EQ6y4GKx9mKdtphQvp+KH6Fk =8MTE -END PGP SIGNATURE- -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
David Lasker wrote: I was trying to figure out the best way to deploy VSS with BackupPC on my Windows XP PCs, and found this wonderful script. Thank you so much Jeffrey for sharing it! Is it possible to do VSS on XP Home? I have a location that I'd like to do VSS and getting them upgraded to something better has been/is going to be a long process. I'd also like to add a wake on lan and shutdown to the process, is that doable? -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
According to this post: http://www.mail-archive.com/backuppc-users@lists.sourceforge.net/msg12947.ht ml VSS works on XP Home. You can download vshadow.exe and try it yourself to make sure. I have implemented wakeonlan and shutdown with BackupPC using the method in this post: http://www.mail-archive.com/backuppc-users@lists.sourceforge.net/msg01419.ht ml See this post: http://www.mail-archive.com/backuppc-users@lists.sourceforge.net/msg13504.ht ml for some issues I ran into with wakeonlan. The short story is that you need to configure BackupPC to wake up only once per day, in order for wakeonlan to work in a reasonable manner. Dave -Original Message- From: David Morton [mailto:morto...@dgrmm.net] Sent: Monday, March 30, 2009 12:16 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd David Lasker wrote: I was trying to figure out the best way to deploy VSS with BackupPC on my Windows XP PCs, and found this wonderful script. Thank you so much Jeffrey for sharing it! Is it possible to do VSS on XP Home? I have a location that I'd like to do VSS and getting them upgraded to something better has been/is going to be a long process. I'd also like to add a wake on lan and shutdown to the process, is that doable? -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
David writes: The short story is that you need to configure BackupPC to wake up only once per day, in order for wakeonlan to work in a reasonable manner. That should be fixed in 3.2.0beta0: * Moved call to NmbLookupFindHostCmd in BackupPC_dump to after the check of whether a backup needs to be done. This makes wakeonlan work correctly, rather than waking up the client every WakeupSchedule. Reported by David Lasker. Craig -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
David Morton wrote at about 14:15:57 -0500 on Monday, March 30, 2009: David Lasker wrote: I was trying to figure out the best way to deploy VSS with BackupPC on my Windows XP PCs, and found this wonderful script. Thank you so much Jeffrey for sharing it! Is it possible to do VSS on XP Home? I have a location that I'd like to do VSS and getting them upgraded to something better has been/is going to be a long process. I use my script all the time on XP Home. I'd also like to add a wake on lan and shutdown to the process, is that doable? I'm not sure what you mean exactly. But since it is a general purpose bash script, I imagine a lot can be done... -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
David Lasker wrote: The short story is that you need to configure BackupPC to wake up only once per day, in order for wakeonlan to work in a reasonable manner. That would be great for this particular system anyway, since I'd want it to only wake up at night. -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Agree with all of your revised comments -- and I will make the tests/changes when I have a chance. The only nit I would pick is with cyrunsrv and rsyncd. It is probably inherently dangerous to have two different rsyncd processes running at the same time unless you are careful to run them on different ports (and probably also different log files) since by the nature of how this script works it modifies the rsyncd.conf file and therefore must use a special instance of rsyncd. Therefore, if you are using both my script and a separate rsyncd process, I would recommend starting/stopping rsyncd for each task (this is what my script does and thus it leaves a clean when vss is not running). If you are careful to use a separate port and keep track of pids then you could have concurrent rsyncd processes but I would leave that for expert users to do at their own risk. In either case, there is nothing wrong with using cygrunsrv to set up the service - just make sure to start/stop the rsyncd service itself appropriately. David Lasker wrote at about 09:49:30 -0700 on Friday, March 27, 2009: Hi Jeffrey Thanks for the quick response. Here are my comments on your comments: 1. The UserScripts section of the BackupPC wiki is here: http://backuppc.wiki.sourceforge.net/CustomUserScripts I believe that anyone with a sourceforge account can edit it. If you have trouble doing so, please email me the script privately, and I'll give it a try. 2. I agree that you should *not* hard code the 'root' alternative. I am hoping that someone on this list understands cygwin better than we do, and can advise us as to what is really going on, and what is the best fix. For now, let's just address this issue in the documentation. 4. This issue refers only to the comments at the beginning of the script for its suggested usage, lines 22-27. The executable code in the script is fine. I believe that $hostIP will always work in all cases. $host will only work if PC host names are resolvable via DNS. $host fails for me since my PC's are not in DNS. If you have a chance, can you give $hostIP a try in your site and verify it works for you? 5 and 6. You are correct, and sorry for the confusion. But I think there might still be an issue: if your script kills the Windows rsyncd service, and a user tries to do a restore after a backup, then I believe that restore will fail, since there will not be a rsyncd running on the PC. In my site, I was happy to completely remove the rsyncd Windows service, resulting in one less thing to do when a PC starts up. That is why I needed to add the $Conf{RestorePreUserCmd} and $Conf{RestorePostUserCmd} to my BackupPC config. You are correct that you can't use VSS for restore. I used the '-u 0' parameter on restores, to force the script to start an rsyncd daemon in non-shadow mode. So for now, the only changes I would suggest for the script are fixing the nuul typo, and some additional comments. Thanks for the help! Dave -Original Message- From: Jeffrey J. Kosowsky [mailto:backu...@kosowsky.org] Sent: Thursday, March 26, 2009 10:39 PM To: General list for user discussion, questions and support Subject: Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd David Lasker wrote at about 15:21:11 -0700 on Thursday, March 26, 2009: I was trying to figure out the best way to deploy VSS with BackupPC on my Windows XP PCs, and found this wonderful script. Thank you so much Jeffrey for sharing it! I ran into (and solved) a few issues when deploying version 0.3 of the script that I wanted to share, in the hope of making it easier for the next user. Thanks for the compliments and for the feedback 1. The various archives for this mailing list all mangle the script in different ways, i.e. at signs and colons get changed, extra newlines added, indents removed, etc. It took me several hours of studying diffs between the versions on backupcentral.com and mailarchive.com to get a working version. Could Jeffery post this script in the User Scripts section of the wiki? I would be happy to do that if you tell me where it is and what I need to do. 2. The script requires it be in the group Administrators. I find it impossible to set this group on my Windows PCs. When I chgrp a file to Administrators or group number 544, the group name is changed to root which is group number 0. I think this might be because both Administrators and root both have the same SID in /etc/group. I finally gave up and changed the script to allow ownership by either Administrators or root like this: #Check permissions on files we call. Also touch SHADOWLOCK # Set up SHADOWDIR and check their permissions if [ $USESHADOWS -gt 0 ] touch $SHADOWLOCK \ ! ( stat
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
I was trying to figure out the best way to deploy VSS with BackupPC on my Windows XP PCs, and found this wonderful script. Thank you so much Jeffrey for sharing it! I ran into (and solved) a few issues when deploying version 0.3 of the script that I wanted to share, in the hope of making it easier for the next user. 1. The various archives for this mailing list all mangle the script in different ways, i.e. at signs and colons get changed, extra newlines added, indents removed, etc. It took me several hours of studying diffs between the versions on backupcentral.com and mailarchive.com to get a working version. Could Jeffery post this script in the User Scripts section of the wiki? 2. The script requires it be in the group Administrators. I find it impossible to set this group on my Windows PCs. When I chgrp a file to Administrators or group number 544, the group name is changed to root which is group number 0. I think this might be because both Administrators and root both have the same SID in /etc/group. I finally gave up and changed the script to allow ownership by either Administrators or root like this: #Check permissions on files we call. Also touch SHADOWLOCK # Set up SHADOWDIR and check their permissions if [ $USESHADOWS -gt 0 ] touch $SHADOWLOCK \ ! ( stat -c %A $0 | grep -q ^r.x \ [[ $(stat -c %G $0 ) =~ Administrators|root ]] \ stat -c %A $SHADOWEXECCMD | grep -q ^r.x \ [[ $(stat -c %G $SHADOWEXECCMD) =~ Administrators|root ]] \ If anyone has a better solution to this problem, please let me know. 3. There is a typo in the line: $DOSDEV ${letter}: /D 2 /dev/nuul which should be changed to /dev/null 4. If using nmblookup to resolve PC host names, then the calls to the script in the pc config files should use $hostIP instead of $host. 5. If you were previously running rsyncd as a Windows service, you need to remove it, by using cygrunsrv -R. 6. The script needs to be called in $Conf{RestorePreUserCmd} and $Conf{RestorePostUserCmd} with the additional parameter -u 0 in order for restores to work. Hope that helps... Dave -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
David Lasker wrote at about 15:21:11 -0700 on Thursday, March 26, 2009: I was trying to figure out the best way to deploy VSS with BackupPC on my Windows XP PCs, and found this wonderful script. Thank you so much Jeffrey for sharing it! I ran into (and solved) a few issues when deploying version 0.3 of the script that I wanted to share, in the hope of making it easier for the next user. Thanks for the compliments and for the feedback 1. The various archives for this mailing list all mangle the script in different ways, i.e. at signs and colons get changed, extra newlines added, indents removed, etc. It took me several hours of studying diffs between the versions on backupcentral.com and mailarchive.com to get a working version. Could Jeffery post this script in the User Scripts section of the wiki? I would be happy to do that if you tell me where it is and what I need to do. 2. The script requires it be in the group Administrators. I find it impossible to set this group on my Windows PCs. When I chgrp a file to Administrators or group number 544, the group name is changed to root which is group number 0. I think this might be because both Administrators and root both have the same SID in /etc/group. I finally gave up and changed the script to allow ownership by either Administrators or root like this: #Check permissions on files we call. Also touch SHADOWLOCK # Set up SHADOWDIR and check their permissions if [ $USESHADOWS -gt 0 ] touch $SHADOWLOCK \ ! ( stat -c %A $0 | grep -q ^r.x \ [[ $(stat -c %G $0 ) =~ Administrators|root ]] \ stat -c %A $SHADOWEXECCMD | grep -q ^r.x \ [[ $(stat -c %G $SHADOWEXECCMD) =~ Administrators|root ]] \ If anyone has a better solution to this problem, please let me know. I am by no means a Windows expert - but perhaps different versions use different names for the superuser equivalent. Before I hard code in the 'root' alternative, it would be helpful to know whether these are the only two possibilities or whether other versions or setups of Windows use additional terms for the superuser 3. There is a typo in the line: $DOSDEV ${letter}: /D 2 /dev/nuul which should be changed to /dev/null Good catch - I will make this change 4. If using nmblookup to resolve PC host names, then the calls to the script in the pc config files should use $hostIP instead of $host. Can you elaborate here so I know how to change the script? Would $hostIP work in both cases or is some type of 'test' or config necessary to determine which one to use? 5. If you were previously running rsyncd as a Windows service, you need to remove it, by using cygrunsrv -R. I do not believe this is necessary. I have the service set up. A problem would potentially only exist if you had the service started automatically and left it running (in that case, the script would either complain about rsyncd already running or kill it depending on how you have the configuration set up) 6. The script needs to be called in $Conf{RestorePreUserCmd} and $Conf{RestorePostUserCmd} with the additional parameter -u 0 in order for restores to work. To tell you the truth, I never tested the script on a restore. Actually, I'm not sure you want to use VSS on a restore since wouldn't you want to restore to the *current* filesystem rather than to a shadow copy. In fact, I thought shadow copies were read only anyway. Maybe I'm missing something so please help me here... Hope that helps... Very helpful! Let's continue the dialog and once we get the above points nailed down, I will release an updated version incorporating these changes. Dave -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Updated version attached below: Version 0.22 I think the routine is pretty finished now and it has more than enough functionality for my own uses, so I probably won't be making many changes in the near future unless I hear about some serious bugs or compelling feature requests: Here is the changelog with code following at the end: Changelog: Version 0.3 - Added ability to specify many parameters also from the command line. In particular, the rsync daemon parameters allow you to run this as a separate instance (different port, address, pid file) directly from the calling routine. This eases setting up rsyncd over ssh without having to make any changes to the host files - Added option to kill restart existing shadow copies and rsync daemons provided they are older than N minutes - Added ability to specify which drive letters should be shadowed - Added 'usage' message - A lot more code cleanup and error checking Version 0.21: - Added USESHADOWS option to determine whether to fall back to rsyncd without shadows if shadow setup fails (or optionally not to even use shadows in the first place - Eliminated need to explicitly wait for rsyncd to setup (check rsync pid file instead) - Fixed rsyncd_kill function so that it only kills daemons (and the right one too) - Added ability to set options for rsync - Cleaned up code - Changed name of routines to shadowmountrsync and shadowexeccmd, respectively Version 0.2: First posted version Jeffrey J. Kosowsky wrote at about 04:59:17 -0500 on Sunday, December 14, 2008: Updated version attached below: Jeffrey J. Kosowsky wrote at about 15:52:56 -0500 on Friday, December 12, 2008: The enclosed script (and a 1-line cmd.exe helper) cleanly and automatically sets up shadow copies, mounts them, and launches the rsync daemon without requiring any special configuration or changes to your existing (non-shadow) rsyncd.conf script. It also cleanly unwinds all the above when you are done rsyncing your files. As a result, you should now be able to back up any (and all) files that are locked under Windows such as registry files (e.g. ntuser.dat) and databases (e.g. Outlook). The script can easily be called directly from $Conf{DumpPreUserCmd} and $Conf{DumpPostUserCmd} -- see the script for examples in the comments. The script itself (which uses some hairy recursion to get around limitations in cygwin ssh, vshadow, and dosdev) is heavily documented. Enjoy and if you use it, please send me feedback, bug reports, enhancements, etc... Jeff --- #!/bin/bash # Shadowmountrsync # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.3 # Description: automagically sets up (and takes down) shadow copies, # shadow mounts, and the rsyncd daemon to allow you to seamlessly # rsync to shadow copies of all the active modules in your current # rsyncd.conf file WITHOUT any configuration changes or added settings # to your existing setup non-shadow copy rsyncd setup. In particular, # the program determines which shadows to create based upon the # modules in your existing /etc/rsyncd.conf combined with what mounts # actually exist. # Usage: (see below for more detailed usage) # shadowmountrsync # Sets up shadow copies, mounts shadows, and launches rsync # shadowmountrsync -d # Terminates rsync, kills shadow copies, unmounts, and cleans up # # If using as pre/post commands in BackupPC, try something like: #$Conf{DumpPreUserCmd} = #'$sshPath -q -x -l kosowsky $host /usr/local/bin/shadowmountrsync'; # #$Conf{DumpPostUserCmd} = #'$sshPath -q -x -l kosowsky $host /usr/local/bin/vshadow-scripts/shadowmountrsync -d'; # # NOTE: this doesn't make sense for the Restore commands since clearly # shadow copies CANNOT be restored to since by definition they are # read-only # # WARNING: This is beta software which has only been tested to work so # far on my own XP sp2 setup in a limited number of situation. In # particular, it may not work on other Windows version since the # nature of shadow copy (and vshadow and dosdev) in particular has # changed radically for Windows versions both prior to and post # WinXP. Given the nature of shadow copy, it *should* (theoretically) # not be capable of doing anything destructive to the source disk, so # it's likely that the worse that would happen is that your backups # would fail (or potentially be incomplete/corrupted). Feedback, bug # reports, and enhancements are always welcome!!! # # NOTE: the companion 1-liner 'shadowexec.cmd' file MUST be in the # same directory Also, both files need to be in the Administrators # group and with group permissions +rx # #
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Am Sonntag, 14. Dezember 2008 schrieb Jeffrey J. Kosowsky: shadow copies Amazing what can be done with shell scripting on windows. I will have to integrate a new windows host into our BackupPC Server in the near future. So Thanks for sharing this! regards, Andreas Micklei -- ___ Andreas Micklei Software development, Network engineering IVISTAR Kommunikationssysteme AG Sachsendamm 6 10829 Berlin, Germany Tel: +49 (0 30) 44 67 82 22 Fax: +49 (0 30) 44 67 82 23 www.ivistar.de mailto:andreas.mick...@ivistar.de _ Making it all come together Handelsregister: Berlin Charlottenburg HRB 75173 Umsatzsteuer-ID: DE207795030 Vorstand: Dipl.-Inform. Heiko Schueler Aufsichtsratsvorsitzender: Mag. Gerhard Kaspar -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] UPDATED: Fully automated script for creating shadow copies and launching rsyncd
Updated version attached below: Jeffrey J. Kosowsky wrote at about 15:52:56 -0500 on Friday, December 12, 2008: The enclosed script (and a 1-line cmd.exe helper) cleanly and automatically sets up shadow copies, mounts them, and launches the rsync daemon without requiring any special configuration or changes to your existing (non-shadow) rsyncd.conf script. It also cleanly unwinds all the above when you are done rsyncing your files. As a result, you should now be able to back up any (and all) files that are locked under Windows such as registry files (e.g. ntuser.dat) and databases (e.g. Outlook). The script can easily be called directly from $Conf{DumpPreUserCmd} and $Conf{DumpPostUserCmd} -- see the script for examples in the comments. The script itself (which uses some hairy recursion to get around limitations in cygwin ssh, vshadow, and dosdev) is heavily documented. Enjoy and if you use it, please send me feedback, bug reports, enhancements, etc... Jeff Changelog: Version 0.2: First posted version Version 0.21: - Added USESHADOWS option to determine whether to fall back to rsyncd without shadows if shadow setup fails (or optionally not to even use shadows in the first place - Eliminated need to explicitly wait for rsyncd to setup (check rsync pid file instead) - Fixed rsyncd_kill function so that it only kills daemons (and the right one too) - Added ability to set options for rsync - Cleaned up code - Changed name of routines to shadowmountrsync and shadowexeccmd, respectively --- #!/bin/bash # Mountrsyncshadows # Copyright Jeffrey J. Kosowsky December 2008 # Version 0.21 # Description: automagically sets up (and takes down) shadow copies, # shadow mounts, and the rsyncd daemon to allow you to seamlessly # rsync to shadow copies of all the active modules in your current # rsyncd.conf file WITHOUT any configuration changes or added settings # to your existing setup non-shadow copy rsyncd setup. In particular, # the program determines which shadows to create based upon the # modules in your existing /etc/rsyncd.conf combined with what mounts # actually exist. # Usage: # mountrsynchadows # Sets up shadow copies, mounts shadows, and launches rsync # mountrsyncshadows -d # Terminates rsync, kills shadow copies, unmounts, and cleans up # # If using as pre/post commands in BackupPC, try something like: #$Conf{DumpPreUserCmd} = #'$sshPath -q -x -l kosowsky $host /usr/local/bin/mountrsyncshadows'; # #$Conf{DumpPostUserCmd} = #'$sshPath -q -x -l kosowsky $host /usr/local/bin/vshadow-scripts/mountrsyncshadows -d'; # # NOTE: this doesn't make sense for the Restore commands since clearly # shadow copies CANNOT be restored to since by definition they are # read-only # # WARNING: This is beta software which has only been tested to work so # far on my own XP sp2 setup in a limited number of situation. In # particular, it may not work on other Windows version since the # nature of shadow copy (and vshadow and dosdev) in particular has # changed radically for Windows versions both prior to and post # WinXP. Given the nature of shadow copy, it *should* (theoretically) # not be capable of doing anything destructive to the source disk, so # it's likely that the worse that would happen is that your backups # would fail (or potentially be incomplete/corrupted). Feedback, bug # reports, and enhancements are always welcome!!! # # NOTE: the companion 1-liner 'shadowexec.cmd' file MUST be in the # same directory Also, both files need to be in the Administrators # group and with group permissions +rx # # REQUIRES: # vshadow.exe # Available from Microsoft downloads (make sure you get the # right version for your architecture!) # http://www.microsoft.com/downloads/details.aspx?FamilyID=0B4F56E4-0CCC-4626-826A-ED2C4C95C871displaylang=en # dosdev.exe # Again available from Microsoft downloads (as part of their # reporting tools). Also, be careful of the version since # different verssions seem to have different command line # interfaces. I obtained my copy from: #http://www.ltr-data.se/files/dosdev.zip # # NOTE: The program recurses through this routine 3 times because of # the limitations first of ssh and then of vshadow. An additional # '0th' pass is used to terminate the shadow copy clean up. # In particular, cygwin ssh logins lack the authority to create shadow # copies or set up dos devices since it is not a true authenticated # user login. On the other hand, vshadow is quite crippled in XP since # it cannot create shadow copies nor can they be easily # mounted. Dosdev is necessary because cygwin does not (yet) allow # direct mounting of shadow copy devices since they lie in the