Re: [BackupPC-users] I received the error No files dumped for share
Holger Parplies escribió: Hi, Craig Barratt wrote on 2009-01-07 22:46:09 -0800 [Re: [BackupPC-users] I received the error No files dumped for share]: Omar writes: $Conf{TarClientCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName+' . ' --totals'; $Conf{TarClientRestoreCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -x -p --numeric-owner --same-owner' . ' -v -f - -C $shareName+'; Both of these are wrong - they start with a space. BackupPC doesn't know what program to exec. You need something like: $Conf{TarClientCmd} = '/usr/bin/sudo env LC_ALL=C $tarPath -c -v -f - -C $shareName+ --totals'; though I would like to point out that configuring sudo to allow execution of 'env' is effectively allowing arbitrary commands as root. You need to have something like backuppcALL=NOPASSWD: /usr/bin/env LC_ALL=C /usr/bin/tar -c * in /etc/sudoers to be fairly secure (you might want to specify more or less of the command line, depending on what you want; more to limit it to a specific directory, less to allow restores with the same sudoers entry). If you use something like '/usr/bin/env LC_ALL=C /usr/bin/sudo ...' that probably won't work, depending on which environment variables your sudo propagates and which it doesn't. Regards, Holger -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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] I received the error No files dumped for share
Holger Parplies escribió: Hi, Craig Barratt wrote on 2009-01-07 22:46:09 -0800 [Re: [BackupPC-users] I received the error No files dumped for share]: Omar writes: $Conf{TarClientCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName+' . ' --totals'; $Conf{TarClientRestoreCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -x -p --numeric-owner --same-owner' . ' -v -f - -C $shareName+'; Both of these are wrong - they start with a space. BackupPC doesn't know what program to exec. You need something like: $Conf{TarClientCmd} = '/usr/bin/sudo env LC_ALL=C $tarPath -c -v -f - -C $shareName+ --totals'; though I would like to point out that configuring sudo to allow execution of 'env' is effectively allowing arbitrary commands as root. You need to have something like backuppcALL=NOPASSWD: /usr/bin/env LC_ALL=C /usr/bin/tar -c * in /etc/sudoers to be fairly secure (you might want to specify more or less of the command line, depending on what you want; more to limit it to a specific directory, less to allow restores with the same sudoers entry). If you use something like '/usr/bin/env LC_ALL=C /usr/bin/sudo ...' that probably won't work, depending on which environment variables your sudo propagates and which it doesn't. Regards, Holger Hi. Yes, i had to edit /etc/sudoers for put my backuppc user, with NOPASSWD, and in the config.pl i have write the said me Craig $Conf{TarClientCmd} = '/usr/bin/sudo env LC_ALL=C $tarPath -c -v -f - -C $shareName+ --totals'; At now i don't have any problem. Thank your four your help!! Regards, Omar Llorens JPL TSOLUCIO, S.L www.tsolucio.com 902 886 938 Spain -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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] I received the error No files dumped for share
Hi, Craig Barratt wrote on 2009-01-07 22:46:09 -0800 [Re: [BackupPC-users] I received the error No files dumped for share]: Omar writes: $Conf{TarClientCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName+' . ' --totals'; $Conf{TarClientRestoreCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -x -p --numeric-owner --same-owner' . ' -v -f - -C $shareName+'; Both of these are wrong - they start with a space. BackupPC doesn't know what program to exec. You need something like: $Conf{TarClientCmd} = '/usr/bin/sudo env LC_ALL=C $tarPath -c -v -f - -C $shareName+ --totals'; though I would like to point out that configuring sudo to allow execution of 'env' is effectively allowing arbitrary commands as root. You need to have something like backuppcALL=NOPASSWD: /usr/bin/env LC_ALL=C /usr/bin/tar -c * in /etc/sudoers to be fairly secure (you might want to specify more or less of the command line, depending on what you want; more to limit it to a specific directory, less to allow restores with the same sudoers entry). If you use something like '/usr/bin/env LC_ALL=C /usr/bin/sudo ...' that probably won't work, depending on which environment variables your sudo propagates and which it doesn't. Regards, Holger -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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] I received the error No files dumped for share
Hi, I have the same problem , but not with a Windows XP. I try to backup the same server where i have instaled the backuppc. My configuration is the next: $Conf{FullKeepCnt} = [ 4, 0, 6 ]; $Conf{IncrKeepCnt} = 28; $Conf{TarShareName} = [ '/etc' ]; $Conf{XferMethod} = 'tar'; $Conf{TarClientCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName+' . ' --totals'; $Conf{TarClientRestoreCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -x -p --numeric-owner --same-owner' . ' -v -f - -C $shareName+'; But when i try to do full backup i have the next error: Executing DumpPreUserCmd: /var/lib/raa/scripts/precopy /etc Exec of /var/lib/raa/scripts/precopy /etc failed Running: /usr/bin/sudo /bin/tar -c -v -f - -C /etc --totals . full backup started for directory /etc Xfer PIDs are now 32571,32570 Exec failed for /usr/bin/sudo /bin/tar -c -v -f - -C /etc --totals . tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal Executing DumpPostUserCmd: /var/lib/raa/scripts/postcopy /etc Exec of /var/lib/raa/scripts/postcopy /etc failed Got fatal error during xfer (No files dumped for share /etc) Backup aborted (No files dumped for share /etc) Not saving this as a partial backup since it has fewer files than the prior one (got 0 and 0 files versus 0) Thank you for your answer. JPL TSOLUCIO S.L www.tsolucio.com 902 886 938 Craig Barratt escribió: Sean writes: I have tried to do a full backup of a Windows XP PC. the Backup is successful. Although I get the error ?No files dumped for share. What is wrong? The backup isn't successful (since no files were dumped for one (or more) shares). Please look at the XferLOG.bad file (which should be quite short) and if the answer isn't apparent, email the contents of the file (or at least the first few lines) to this thread. You should also explain which XferMethod you are using and the corresponding Share and Include/Exclude settings. Craig -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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/ -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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] I received the error No files dumped for share
Omar writes: $Conf{TarClientCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f - -C $shareName+' . ' --totals'; $Conf{TarClientRestoreCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -x -p --numeric-owner --same-owner' . ' -v -f - -C $shareName+'; Both of these are wrong - they start with a space. BackupPC doesn't know what program to exec. You need something like: $Conf{TarClientCmd} = '/usr/bin/sudo env LC_ALL=C $tarPath -c -v -f - -C $shareName+ --totals'; Craig -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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] I received the error No files dumped for share
Hi, I have tried to do a full backup of a Windows XP PC. the Backup is successful. Although I get the error “No files dumped for share. What is wrong? Regards, Sean -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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] I received the error No files dumped for share
Sean writes: I have tried to do a full backup of a Windows XP PC. the Backup is successful. Although I get the error ?No files dumped for share. What is wrong? The backup isn't successful (since no files were dumped for one (or more) shares). Please look at the XferLOG.bad file (which should be quite short) and if the answer isn't apparent, email the contents of the file (or at least the first few lines) to this thread. You should also explain which XferMethod you are using and the corresponding Share and Include/Exclude settings. Craig -- Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ___ 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/