I am running backuppc-3.3.1-2 on a Debian/sid box, I am ssh-ing into the
box and have a limited set of sudo commands that backuppc can execute. This
is as opposed to ssh-ing in as root.

I have the following in my /etc/sudoers.d/backuppc account:

Cmnd_Alias    BACKUP=/bin/tar, /usr/bin/rsync, /usr/bin/mysqldump,
/usr/local/sbin/dbdump
backuppc        ALL=NOPASSWD:BACKUP

Then I am able to run backups.

First step, can you ssh into the local host? Second step, can you simulate
the backup command? In my case it is

/usr/bin/ssh -q -x farragut sudo /usr/bin/rsync --server --sender
--numeric-ids --perms --owner --group -D --links --hard-links --times
--block-size=2048 --recursive --checksum-seed=32761 --ignore-times . /



On Tue, Jul 19, 2016 at 7:18 AM, Robert Wooden <rbrte...@comcast.net> wrote:

> Is this backing up of the localhost functional for anyone? Surely?
>
> ------------------------------
> *From: *"Robert Wooden" <rbrte...@comcast.net>
> *To: *"General list for user discussion, questions and support" <
> backuppc-users@lists.sourceforge.net>
> *Sent: *Sunday, July 17, 2016 12:57:40 PM
> *Subject: *[BackupPC-users] localhost Can't cd to /root: Permission denied
>
>
> I am in the process of rebuilding a Backuppc machine (hard drive died) and
> never (even before hdd died) got backing up localhost (via tar) to backup.
> As a result of the rebuild I have gotten into backing up the localhost
> again.
>
> I have made the adjustments to "TarClientCmd" and "TarClientRestoreCmd" as
> instructed at https://help.ubuntu.com/community/BackupPC (near the end)
> as well as adjusted "visudo". (This use to work.)
>
> When I run: "sudo -u backuppc /usr/share/backuppc/bin/BackupPC_dump -v -f
> localhost" to troubleshoot the issue and the final lines returned are
> "Backup aborted (No files dumped for share /)" and "Can't cd to /root:
> Permission denied".
>
> Much search engine searching the 'issue' returns next to nothing.
>
> This use to work at some point (Ubuntu v14.04LTS and Backuppc 3.3.0, I
> think) but, something changed and now building on v16.04LTS with Backuppc
> v3.3.1 it does not.
>
> What to do?
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> _______________________________________________
> 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/
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> _______________________________________________
> 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/
>
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
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/

Reply via email to