On Sat, 19 Oct 2013 01:11:35 +0200 Holger Parplies <[email protected]> wrote:
> getting quoting right is an endless source of fun ... Looks like it... > > > > The net result in both cases is a failed backup, because tar > > > > tries to stat something derived from the time, as if it was a > > > > filename. > > > > > > > > How can I get round this problem? > > > [...] > > The log shows: > > > > Running: sudo /usr/local/bin/tarCreate.sh -v -f - -C / > > --one-file-system --totals --newer=2013-10-13 08:36:07 . > > Basically, you would need to get quoting right within the shell > script. I don't really understand the need of a shell script, though. > What, exactly, was the point? It appears tarCreate.sh is adding a > '-c' option. Your sudo rule can enforce that just as well (and in a > way less prone to creating security holes). > > backuppc ALL=NOPASSWD: /bin/tar -c * Hmmm... I'd not thought of that as an option - the documentation I read claimed the script was better than merely allowing tar, which it is... but my limited experience of sudo meant I wasn't aware of the possibility you mention. > If you drop the script and just use sudo, you would need $incrDate and > $fileList without a "+". Will try this... Planning to see what rsync is like as a method once I've perfected tar - then I'll go with whichever seems to cause me least bother. -- Phil Reynolds mail: [email protected] Web: http://phil.tinsleyviaduct.com/ ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
