On Wed, Nov 10, 2010 at 16:16, Luis Paulo <luis.bar...@gmail.com> wrote: > On Wed, Nov 10, 2010 at 07:43, Pavel Hofman <pavel.hof...@ivitera.com> wrote: >> >> Luis Paulo napsal(a): >>> On Tue, Nov 9, 2010 at 10:19, Pavel Hofman <pavel.hof...@ivitera.com> wrote: >>>> Hi, >>>> >>>> Is there a way to tell backuppc to finish the currently running backup >>>> jobs and not to start new ones? We mirror backuppc partitions to >>>> external drives via SW RAID and need to stop backuppc and umount the >>>> filesystem to keep the data. I do not want to interrupt the long-running >>>> backups but before they finish, backuppc starts new ones and the process >>>> of backing-up to the external drives cannot be properly finished even >>>> though the raid finished synchronization many ours/days ago. >>>> >>>> Thanks a lot for suggestions. >>>> >>>> Pavel. >>> >>> Setting $Conf{BackupsDisable} = 2; for all clients won't do what you want? >>> >>> See >>> http://your_server/backuppc/index.cgi?action=view&type=docs#item__conf_backupsdisable_ >>> >>> With web gui select for each client -> Edit Config -> Schedule -> On >>> blackouts set BackupsDisable to 2. >> >> Luis, >> >> Thanks a lot for your help. Setting this option for all clients (i.e. in >> the main config) is perfect, but is there a way to tell backuppc (while >> running a backup job) to reload its configuration (re-read the config >> files) so that next backup jobs already reflect the changed >> configuration? In my experience I always had to restart backuppc. >> >> Thanks a lot, >> >> Pavel. >> > > You're probably right, but I'm not sure you need to reload/restart > backuppc (mostly if you change clients .pl). > Any way, I found this: > http://www.mail-archive.com/backuppc-users@lists.sourceforge.net/msg19741.html > > I'm afraid it will be at your own risk. > Regards > Luis >
I can't find any indication that backuppc restarts when you use Admin Options - > Reload on the webgui. The following code excerpt from http://xdslnet.com/docs/BackupPC/bin/BackupPC may help (or not): # # Reload the server. Used by Main_Process_Signal when $SigName eq "HUP" # or when the command "server reload" is received. # sub ServerReload { my($mesg) = @_; $mesg = $bpc->ConfigRead() || $mesg; print(LOG $bpc->timeStamp, "$mesg\n"); $Info{ConfigModTime} = $bpc->ConfigMTime(); %Conf = $bpc->Conf(); umask($Conf{UmaskMode}); ServerSocketInit(); HostsUpdate(0); $NextWakeup = 0; $Info{ConfigLTime} = time; } # # Initialize the unix-domain and internet-domain sockets that # we listen to for client connections (from the CGI script and # some of the BackupPC sub-programs). # sub ServerSocketInit { if ( !defined(fileno(SERVER_UNIX)) ) { # # one-time only: initialize unix-domain socket # if ( !socket(SERVER_UNIX, PF_UNIX, SOCK_STREAM, 0) ) { print(LOG $bpc->timeStamp, "unix socket() failed: $!\n"); exit(1); } my $sockFile = "$LogDir/BackupPC.sock"; unlink($sockFile); if ( !bind(SERVER_UNIX, sockaddr_un($sockFile)) ) { print(LOG $bpc->timeStamp, "unix bind() failed: $!\n"); exit(1); } if ( !listen(SERVER_UNIX, SOMAXCONN) ) { print(LOG $bpc->timeStamp, "unix listen() failed: $!\n"); exit(1); } vec($FDread, fileno(SERVER_UNIX), 1) = 1; } return if ( $ServerInetPort == $Conf{ServerPort} ); if ( $ServerInetPort > 0 ) { vec($FDread, fileno(SERVER_INET), 1) = 0; close(SERVER_INET); $ServerInetPort = -1; } if ( $Conf{ServerPort} > 0 ) { # # Setup a socket to listen on $Conf{ServerPort} # my $proto = getprotobyname('tcp'); if ( !socket(SERVER_INET, PF_INET, SOCK_STREAM, $proto) ) { print(LOG $bpc->timeStamp, "inet socket() failed: $!\n"); exit(1); } if ( !setsockopt(SERVER_INET, SOL_SOCKET, SO_REUSEADDR, pack("l",1)) ) { print(LOG $bpc->timeStamp, "setsockopt() failed: $!\n"); exit(1); } if ( !bind(SERVER_INET, sockaddr_in($Conf{ServerPort}, INADDR_ANY)) ) { print(LOG $bpc->timeStamp, "inet bind() failed: $!\n"); exit(1); } if ( !listen(SERVER_INET, SOMAXCONN) ) { print(LOG $bpc->timeStamp, "inet listen() failed: $!\n"); exit(1); } vec($FDread, fileno(SERVER_INET), 1) = 1; $ServerInetPort = $Conf{ServerPort}; } } ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ 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/