Re: [BackupPC-users] Shutdown BackupPc server after backup
Hi Les, your second choise is not possible to do, because BackupPc policy for full backup and after incremental backup have different start time and finish time. So I think DumpPostUserCmd with /etc/sudoers is the ONLY one solution! Thanks, Alessandro Yes its possible. two ways. 1. DumpPostUserCmd (with a suitable script or command, but you'll likely need sudo to help out) 2. run a cron job to shutdown backuppc at a specified time. if you know how long a backup should take then you can schedule accordingly. also you can use DumpPostUserCmd to say touch a file when its finished. In turn you have a separate script which polls for that file, if it finds it it issues the shutdwon command and removes the file. But then how do you know when to start it back up? WakeUp schedules and blackout periods should enable you to only do backups at specified times and always have backuppc running. So i guess the real question should be what do you want to achieve? As another example here's what i do in some cases. backuppc is on a removable drive that gets rotated weekly. i modified the init script to mount the drive before starting backuppc and unmount after stopping backuppc. i also stopped any automounting from occurring. a cronjob runs at 7am to stop backuppc and unmount the drive. a cronjob runs at 7pm to mount the drive and start backuppc Why? because i only want backups to occur after hours. I know they will only take at most a few hours. And it gives the ordinary end user an easy way to remove the drives during the day when they want to swap them over for rotation. they simply power off the drive, unplug it and put the new one in and switch it on. At 7pm backuppc starts, mounting the new drive and normally kicks off a backup at 8pm, or the next WakeUp schedule. Hope that helps, Regards, Les - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
[BackupPC-users] Backukppc Windows Vista
Hello, I am using BackupPC for some times now and it works very well. I have version 2.1.2 on an Ubuntu Linux box and use rsync to backup 2 WinXP desktop and 1 XP laptop. Last week one of the XP was updated to Vista and since the backup kind of work but gives me a huge amount of errors, nearly 400 versus an average of 40/50 These added errors are mostly ...failed: Permission denied (13)? I am quite positive I never had such a permission issue in the past, is there something different with Vista? Also, the directory structure looks quite different in Vista respect XP. Would someone know where I could find the equivalence of the usual exclude directories (temp, temp internet and the like). Thanks for any help Guy www.yonis.ch - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] Giving talk on BackupPC at LInuxFest Northwest
Ski writes: Craig, thank you again for the great software. It has been a life saver for the Northshore School District. Most recent stats are 1300 clients with about 4TB data across all clients, 8 BackupPC servers with 3.4TB of data (love the hardlinks and compression) keeping 2 fulls and 7 incrementals, and 10 - 15 really, really happy teachers a week when we are able to restore all their data after system crashes. That's great! By the way, the new 2007 O'Reilly Backup Recovery book by Curtis Preston includes a chapter on BackupPC: http://www.oreilly.com/catalog/9780596102463/index.html Here is the table of contents: http://www.oreilly.com/catalog/9780596102463/toc.html Craig - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
[BackupPC-users] Transfer and error log messages
Hi All, I am a backupPC user. Last week i have sceduled backup of nearly 80 GB and i set the Full backup Interval as 6 and Incremental BAckup Interval as 1. It took Full backup and Incremental backup properly. In UI, transfer log ( XferLOGhttp://192.168.0.94/cgi-bin/backup?action=viewtype=XferLOGnum=0host=rajamannar) showed the the list of files which are transferred from the host machine to the backup server. But same files are listed in Error Log ( Errors )http://192.168.0.94/cgi-bin/backup?action=viewtype=XferErrnum=0host=rajamannaralso. Is it the correct behaviour? If it so then whats difference between these log files? LOG FILES I have one doubt in the parameters which are listed in the Host Log message. This is the portion of the log message 2007-04-03 22:47:39 full backup 3 complete, 6 files, bytes, 737073 xferErrs ( bad files, bad shares, 737073 other) Can anyone explain whats the parameter xferErrs mean and also whats the number ( 737073 ) shown before that? Thanks in advance for the help. regards, Rahul - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] backup summary
Tomasz Klimaszewski wrote: Hello I installed backuppc 3.0.0 and work mostly with CGI interface. I wounder if it possible and if yes I wounder how to configurate email notifiaction about all yesterday backups. My aim is to get: one mail with info of each hosts and files it backuped up. And one more thing mail with info about hosts didn't backup up any new files. Thx in advance Hi! I don't know about built-in reports that much, but you can use the DumpPostUserCmd setting with a mailer program. Tell us if you need more info. /johan -- Johan Ehnberg Email: [EMAIL PROTECTED] GSM: +358503209688 WWW: http://www.ehnberg.net/johan/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] backup summary
Tomasz Klimaszewski wrote: Hello I installed backuppc 3.0.0 and work mostly with CGI interface. I wounder if it possible and if yes I wounder how to configurate email notifiaction about all yesterday backups. My aim is to get: one mail with info of each hosts and files it backuped up. And one more thing mail with info about hosts didn't backup up any new files. Thx in advance -- somebody known as: Tomasz Klimaszewski klimae[at]gmail[dot]com Hi Tomasz; There was a thread on this earlier that got me going and here is a summary from the archives to give you ideas: http://search.gmane.org/search.php?group=gmane.comp.sysutils.backup.backuppc.generalquery=email+summary+daily I was looking for the same thing to bug delinquent users and quickly modified a simple contribution script by Jean-Michel Beuken. ( http://thread.gmane.org/gmane.comp.sysutils.backup.backuppc.general/9055/focus=10040 ) It is executed via the hosts post dump option and uses built in variables available to this post backup command. $Conf{DumpPostUserCmd} = '/pathtobackuppc/bin/*BackupPC_notify $user $xferOK $host $type $shares*'; The scripts runs every time a backup executes on the target host. You could could make it a global config directive to affect all subscribed hosts but this could get annoying. No news about backups is good news for me. To satisfy your mail with info about hosts didn't backup up any new files requirement you could extend to do a 'tail /pathtodatadir/pc/$host/LOG.~date~' into the email to get the raw lines and send that out based on some policy you decide. perl or (ummm) awk can be your friends here to search the log file. Have fun... The possibilities are endless when it comes to email and when you already have the data on hand. Allen... -- / Break away from the Gates of Windows... Support OpenSource communities. \ - #!/usr/bin/perl # # (extract from the BackupPC Help page) # The following variable substitutions are made at run time for # $Conf{DumpPreUserCmd}, $Conf{DumpPostUserCmd}, $Conf{DumpPreShareCmd} and $Conf{DumpPostShareCmd}: # # $type type of dump (incr or full) # $xferOK 1 if the dump succeeded, 0 if it didn't # $client client name being backed up # $host host name (could be different from client name if # $Conf{ClientNameAlias} is set) # $hostIP IP address of host # $user user name from the hosts file # $moreUserslist of additional users from the hosts file # $sharethe first share name (or current share for # $Conf{DumpPreShareCmd} and $Conf{DumpPostShareCmd}) # $shares list of all the share names # $XferMethod value of $Conf{XferMethod} (eg: tar, rsync, smb) # $sshPath value of $Conf{SshPath}, # $cmdType set to DumpPreUserCmd or DumpPostUserCmd $version = 1.0.2; # # Inbound arguments $user = $ARGV[0]; $xferOK = $ARGV[1]; $host = $ARGV[2]; $type = $ARGV[3]; $shares = $ARGV[4]; #Mail settings $mailprog = '/usr/lib/sendmail'; $recipient = $user; ## Start Code $msg = END_MSG_BODY; BACKUP REPORT for host: $host Summary: END_MSG_BODY if ( $xferOK) { $msg .= END_MSG_OK; The ($type) backup completed with status: SUCCESS The following shares were backed up: $shares Support Info: = Check status or initiate a backup anytime here: http://servername/cgi-bin/BackupPC/BackupPC_Admin?host=$host Contact support: mailto:[EMAIL PROTECTED] Thank you for your attention and have a nice day! END_MSG_OK $subject = BackupPC: status for $host : SUCCESS; sendmail($msg); } else { $msg .= END_MSG_FAIL; The ($type) backup completed with status: FAILURE An attempt was made to backup the following shares: $shares Support Info: = You can choose to ignore this messsage if you know the reason for the failure. (Like PC being turned off) The normal backup cycle is still in effect. You can manually re-initiate a backup from here and selecting Start $type Backup: http://servername/cgi-bin/BackupPC/BackupPC_Admin?host=$host You can contact support otherwise to investigate further. Contact: mailto:[EMAIL PROTECTED] Thank you for your attention and have a nice day! END_MSG_FAIL $subject = BackupPC: status for $host : FAILURE !;
Re: [BackupPC-users] Got remote protocol 757955594
Craig Barratt cbarratt at users.sourceforge.net writes: Kai Grunau writes: I'm using backuppc version 2.1.0pl1 on RedHat Enterprise 3 server I found in the Xferlog file following message : --- Running: /usr/bin/ssh -q -x -l root hathorjan /usr/local/bin/rsync --server --sender --numeric-ids --perms --owner --group --devices --links --times --block-size=2048 --recursive --exclude /lost+found/ . /var/opt/SUNWmsgsr/store/partition/primary/ Xfer PIDs are now 661 Got remote protocol 757955594 Fatal error (bad version): The decimal value 757955594 is the first four bytes of the unexpected text or error from the remote machine. In hex it is 2D2D7C0A or --|\r. Does your .cshrc or ssh login sequence emit this string? This text should appear in ascii after bad version. I'm surprised to see the rest of that message is empty. Craig I also discovered a similar client message if one is running the server daemon as: sshd -D -d -d -d I was getting interger value of the 1st 4 characters of debug1 The suggestion given was most helpful to realize what was going on. thanks, -Frank - - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] Some progress Rsyncd with winxp pc
nilesh writes: full backup started for directory home Connected to 192.168.2.149:873, remote version 29 Negotiated protocol version 28 Got response: f37028cf3d2f8dc751a16506ab234ddf Auth: got challenge: f//wNxSOI0+aIZA9uUIjZA, reply: backuppc 83Aozz0vjcdRoWUGqyNN3w Connected to module home Sending args: --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . . Checksum seed is 1177590893 Got checksumSeed 0x46309c6d Sent include: /home Sent exclude: /* Your module is called home (is that /home?), and you appear to have $Conf{BackupFilesOnly} set to '/home'. Therefore you are trying to backup /home/home and exclude everything else. (Exclude and includes are relative to the share or top-level directory.) Since you most likely want to backup the entire module, set $Conf{BackupFilesOnly} to an empty string. Craig - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/