|
So i installed sudo, but i am not sure where this FAQ is that you
mentioned please provide URL if you have it..... so i added to the config files as follows.. config.pl $Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host' . ' /usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName+' . ' --totals'; $Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host' . ' /usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -x -p --numeric-owner --same-owner' . ' -v -f - -C $shareName+'; localhost.pl $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName' . ' --totals'; when i "su - backuppc" and run /usr/bin/sudo /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 17 -s /var/lib/postgrey -t /home/rob I get... We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. Password: My /etc/sudoers is... # User privilege specification root ALL=(ALL) ALL backuppc ALL=NOPASSWD:/bin/tar my tar is actual in that dir , its not a link Any ideas? This is on a debian etch system Rob Morin Dido InterNet Inc. Montreal, Canada Http://www.dido.ca 514-990-4444 Ali Bendriss wrote: The restore procedure need to be done probably as root if you have not setup sudo as suggested in the faq. Try first to download a tar archive from the web interface and extract it in tmp to see if all is fine.On Thursday 28 June 2007 18:45, you wrote:No actually i mean Postgrey its a greylist daemon for postfix MTA On another note i seem to be having permission problems i think.... i tried to restore a dir but i keep getting this error 2007-06-28 13:02:41 Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 14 -s /var/www -t -r /fcgi -p /fcgi/ /fcgi/master 2007-06-28 13:02:46 Restore failed (Tar exited with error 65280 () status) 2007-06-28 13:05:04 Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 10 -s /var/www -t -r /fcgi -p /fcgi/ /fcgi/master 2007-06-28 13:05:08 Restore failed (BackupPC_tarCreate failed) After i put the backuppc user in the root group it spit out this.... 2007-06-28 13:23:47 Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 14 -s /var/www -t -r /fcgi -p /fcgi/ /fcgi/master 2007-06-28 13:23:52 Restore failed (BackupPC_tarCreate failed) Same thing pretty much but not error code... i tried it manually as backuppc user from a prompt and got this... howerver nothign was restored.... joe:/etc/backuppc# su - backuppc [EMAIL PROTECTED]:~$ /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 14 -s /var/www -t -r /fcgi -p /fcgi/ /fcgi/master ./fcgi/master/0000755000372000037200000000000010627402252012066 5ustar vu2000vu2000./fcgi/master/php4/00007550000000000000000000000000106274022520 12767 5ustar rootroot./fcgi/master/php5/000075500000000000000000000000001062740225201277 0 5ustar rootrootDone: 0 files, 0 bytes, 3 dirs, 0 specials, 0 errors Any help appreciated... Thanks.. Rob Morin Dido InterNet Inc. Montreal, Canada Http://www.dido.ca 514-990-4444 Ali Bendriss wrote: If by postgrey you mean postgresql database then there is an other way : you can run pg_dumpall (man pg_dumpall) an backup only that script file. On Wednesday 27 June 2007 18:50, Ali Bendriss wrote: You need to find a way to give access to those directories (read exec) and files (read) the backuppc user. look for "How can client access as root be avoided?" in the FAQ On Wednesday 27 June 2007 18:43, Rob Morin wrote: Never mind got it.... I added to the backup /var/lib/postgrey here is an las of that dir joe:/var/lib/postgrey# ls -al total 10364 drwx------ 2 postgrey postgrey 4096 2007-06-22 13:21 . drwxr-xr-x 41 root root 4096 2007-06-27 09:31 .. -rw------- 1 postgrey postgrey 24576 2007-06-22 13:21 __db.001 -rw------- 1 postgrey postgrey 155648 2007-06-22 13:21 __db.002 -rw------- 1 postgrey postgrey 270336 2007-06-22 13:21 __db.003 -rw------- 1 postgrey postgrey 98304 2007-06-22 13:21 __db.004 -rw------- 1 postgrey postgrey 16384 2007-06-22 13:21 __db.005 -rw------- 1 postgrey postgrey 10485760 2007-06-27 13:44 log.0000000001 -rw------- 1 postgrey postgrey 69632 2007-06-27 12:56 postgrey_clients.db -rw------- 1 postgrey postgrey 942080 2007-06-27 13:44 postgrey.db -rw------- 1 postgrey postgrey 0 2007-05-30 16:23 postgrey.lock What should be done to get it to work, in a nice way? Rob Morin Dido InterNet Inc. Montreal, Canada Http://www.dido.ca 514-990-4444 Rob Morin wrote: Hello all... i started getting localhost backup errors... Log file is... 2007-06-27 13:10:29 incr backup started back to 2007-06-21 19:00:01 for directory /etc 2007-06-27 13:11:45 incr backup started back to 2007-06-21 19:00:01 for directory /var/www 2007-06-27 13:12:06 incr backup started back to 2007-06-21 19:00:01 for directory /var/lib/mysql 2007-06-27 13:12:06 incr backup started back to 2007-06-21 19:00:01 for directory /var/lib/amavis 2007-06-27 13:12:07 incr backup started back to 2007-06-21 19:00:01 for directory /var/lib/spamassassin 2007-06-27 13:12:07 incr backup started back to 2007-06-21 19:00:01 for directory /var/lib/clamav 2007-06-27 13:12:08 incr backup started back to 2007-06-21 19:00:01 for directory /var/lib/mdadm 2007-06-27 13:12:08 incr backup started back to 2007-06-21 19:00:01 for directory /var/lib/postgrey 2007-06-27 13:12:10 Got fatal error during xfer (Tar exited with error 512 () status) 2007-06-27 13:12:15 Backup aborted (Tar exited with error 512 () status) It started on the 22nd of June, however all other hosts are fine.... My localhost .pl is as follows I am on a Debian etch system backuppc version version 2.1.2pl1 Thanks to all in advance # # Local server backup of /etc as user backuppc # $Conf{XferMethod} = 'tar'; $Conf{TarShareName} = ['/etc','/var/www','/var/lib/mysql','/var/lib/amavis','/var/lib/spamass as sin','/var/lib/clamav','/var/lib/mdadm','/var/lib/postgrey','/var/mail' ]; $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C $tarPath -c -v -f - -C $shareName' . ' --totals'; # remove extra shell escapes ($fileList+ etc.) that are # needed for remote backups but may break local ones $Conf{TarFullArgs} = '$fileList'; $Conf{TarIncrArgs} = '--newer=$incrDate $fileList'; ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/ |
------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
