SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
chdir failed error using rsyncd on MacOSX
Author Message
Post chdir failed error using rsyncd on MacOSX 
Hi All,

I'm trying to set up rsyncd to work on a MacBook Pro (Tiger/10.4.7),
rsync v 2.6.3. I have gotten it to work fine via rsync with shared
ssh keys on another Powerbook, but the rsyncd version is more
attractive because of the rsyncd.secrets file (no need to set up
another user or to require the user to allow a remote login with his
key. The first is too much keyboard/mouse time; the second is a
security hole and will be actively resisted by the user base.

The client's rsyncd.conf file is:
---
auth users = wheel, backuppc
secrets file = /etc/rsyncd.secrets
strict modes = true
use chroot = no
max verbosity = 10

[etc]
/private/etc

[homes]
/Users

[preferences]
/Library/Preferences
------------------------------------------------
and /etc/rsyncd.secrets file allows the backuppc user in.
On the server side, the relevant lines from the client config are:

# do these 2 actually do anything if method is rsyncd?
$Conf{BackupFilesOnly} = ['/private/etc', '/Users'];
$Conf{BackupFilesExclude} = undef;

$Conf{XferMethod} = 'rsyncd';
$Conf{XferLogLevel} = 1;
$Conf{RsyncClientPath} = '/usr/bin/rsync';
$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host nice -n 19
$rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host nice -n
19 $rsyncPath $argList+';

$Conf{RsyncShareName} = 'etc', 'homes', 'preferences';
$Conf{RsyncdClientPort} = 873;
$Conf{RsyncdUserName} = 'backuppc';
$Conf{RsyncdPasswd} = 'likearollingstone'; # wheel
$Conf{RsyncdAuthRequired} = 1;
$Conf{RsyncCsumCacheVerifyProb} = 0.01;

$Conf{RsyncArgs} and $Conf{RsyncRestoreArgs} are not edited

When I try to run the backup from the server, it implies a good login
(confirmed by the syslog) and then:
...
2006-07-11 10:22:44 full backup started for directory etc
2006-07-11 10:22:45 Got fatal error during xfer (chdir failed)
2006-07-11 10:22:50 Backup aborted (chdir failed)

Googling til my fingers bleed reveal little on this error.

The syslog also reveals:
Jul 11 10:22:40 bongo rsyncd[1261]: params.c:Parameter() - Ignoring
badly formed line in configuration file: /private/etc\n
Jul 11 10:22:40 bongo rsyncd[1261]: params.c:Parameter() - Ignoring
badly formed line in configuration file: /Users\n
Jul 11 10:22:40 bongo rsyncd[1261]: params.c:Parameter() - Ignoring
badly formed line in configuration file: /Library/Preferences\n

I edited the files with joe - is the std newline (\n) still verboten
on Apples?

--
Harry Mangalam - Research Computing < at > NACS, E2148, Engineering Gateway,
UC Irvine 92697 949 824 0084(o), 949 285 4487(c)
harry.mangalam < at > uci.edu


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
Hi All,

Thanks to Ambrose Li for spotting my stupid editing mistake - the
rsyncd modules require a 'path = ' prefix to the directories to back
up. I can now rsync from the backuppc server to the client Mac from
the commandline, using the rsyncd method, but the backuppc-driven
backup is still failing. I increased the log level to 10 and got
this log which has lots of text, but is largely uninformative to me.
(Long lines have been wrapped with '\'.

The only thing I can see that makes some sense is that somewhere in
the process, the following '--exclude' flags are being sent in the
args line:

--exclude=/* \
--exclude=/private/*

which are in neither the client config file nor the config.pl file.
Those lines would seem to exclude everything, if they work like I
assume.

=============================================
File /var/lib/backuppc/pc/bongo/XferLOG.bad
Contents of file /var/lib/backuppc/pc/bongo/XferLOG.bad, modified
2006-07-12 09:50:04
Receiving: 405253594e43443a2032380a
Connected to bongo:873, remote version 28
Sending: 405253594e43443a2032360a
Sending: 686f6d65730a
Receiving:
405253594e43443a20415554485245514420682b796f4431745a564d36336e7271536b702f5849410a
Got response: 2c1700213b9217d7e5c3d439520f3584
in mime: LBcAITuSF9flw9Q5Ug81hA
Sending: 686a6d204c426341495475534639666c773951355567383168410a
Auth: got challenge: h+yoD1tZVM63nrqSkp/XIA, reply: hjm
LBcAITuSF9flw9Q5Ug81hA
Receiving: 405253594e43443a204f4b0a
Connected to module homes
Sending:
2d2d7365727665720a2d2d73656e6465720a2d2d6e756d657269632d6964730a2\
d2d7065726d730a2d2d6f776e65720a2d2d67726f75700a2d440a2d2d6c696e6b\
730a2d2d74696d65730a2d2d626c6f636b2d73697a653d323034380a2d2d72656\
37572736976650a2d2d696e636c7564653d2f707269766174650a2d2d696e636c\
7564653d2f707269766174652f6574630a2d2d696e636c7564653d2f5573657273\
0a2d2d6578636c7564653d2f2a0a2d2d6578636c7564653d2f707269766174652f\
2a0a2d2d69676e6f72652d74696d65730a2e0a2e0a0a
Sending
args: --server --sender --numeric-ids --perms --owner --group -D \
--links --times --block-size=2048 --recursive --include=/private \
--include=/private/etc --include=/Users --exclude=/* \
--exclude=/private/* --ignore-times . .
Receiving: 3128b544
Checksum seed is 1152722993
Got checksumSeed 0x44b52831
Receiving: 1800000709012ecc0000009f259844fd430000500000000000000000
Got file (0 of 1): .
Got file list: 1 entries
Child PID is 10797
Xfer PIDs are now 10797
Sending csums, cnt = 1, phase = 0
Sending: ffffffff
Sending csums, cnt = 0, phase = 1
pollChild()
Receiving: 04000007ffffffff
pollChild()
attribSet(dir=, file=homes)
pollChild()
create d1775 0/80 204 .
pollChild()
makePath(/var/lib/backuppc/pc/bongo/new//fhomes/, 0777)
pollChild()
attribSet(dir=, file=homes)
pollChild()
Finished deltaGet phase 0
pollChild()
Child is sending done
pollChild()
Got done from child
Sending: ffffffff
pollChild()
Receiving: 04000007ffffffff
pollChild()
Finished deltaGet phase 1
pollChild()
Receiving: 0c000007130100006500000000000000
pollChild()
Got stats: 275 101 0 0 ('errorCnt' => 0,'ExistFileSize' =>
0,'ExistFileCnt' => 0,'TotalFileCnt' => 0,'ExistFileCompSize' =>
0,'TotalFileSize' => 0)
Sending: ffffffff
attribWrite(dir=) -> /var/lib/backuppc/pc/bongo/new//attrib
pollChild()
Got exit from child
Done: 0 files, 0 bytes
Got fatal error during xfer (No files dumped for share homes)
Backup aborted (No files dumped for share homes)




On Tuesday 11 July 2006 08:03, Harry Mangalam wrote:
Hi All,

I'm trying to set up rsyncd to work on a MacBook Pro
(Tiger/10.4.7), rsync v 2.6.3. I have gotten it to work fine via
rsync with shared ssh keys on another Powerbook, but the rsyncd
version is more attractive because of the rsyncd.secrets file (no
need to set up another user or to require the user to allow a
remote login with his key. The first is too much keyboard/mouse
time; the second is a security hole and will be actively resisted
by the user base.

The client's rsyncd.conf file is:
---
auth users = wheel, backuppc
secrets file = /etc/rsyncd.secrets
strict modes = true
use chroot = no
max verbosity = 10

[etc]
/private/etc

[homes]
/Users

[preferences]
/Library/Preferences
------------------------------------------------
and /etc/rsyncd.secrets file allows the backuppc user in.
On the server side, the relevant lines from the client config are:

# do these 2 actually do anything if method is rsyncd?
$Conf{BackupFilesOnly} = ['/private/etc', '/Users'];
$Conf{BackupFilesExclude} = undef;

$Conf{XferMethod} = 'rsyncd';
$Conf{XferLogLevel} = 1;
$Conf{RsyncClientPath} = '/usr/bin/rsync';
$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host nice -n 19
$rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host nice
-n 19 $rsyncPath $argList+';

$Conf{RsyncShareName} = 'etc', 'homes', 'preferences';
$Conf{RsyncdClientPort} = 873;
$Conf{RsyncdUserName} = 'backuppc';
$Conf{RsyncdPasswd} = 'likearollingstone'; # wheel
$Conf{RsyncdAuthRequired} = 1;
$Conf{RsyncCsumCacheVerifyProb} = 0.01;

$Conf{RsyncArgs} and $Conf{RsyncRestoreArgs} are not edited

When I try to run the backup from the server, it implies a good
login (confirmed by the syslog) and then:
...
2006-07-11 10:22:44 full backup started for directory etc
2006-07-11 10:22:45 Got fatal error during xfer (chdir failed)
2006-07-11 10:22:50 Backup aborted (chdir failed)

Googling til my fingers bleed reveal little on this error.

The syslog also reveals:
Jul 11 10:22:40 bongo rsyncd[1261]: params.c:Parameter() - Ignoring
badly formed line in configuration file: /private/etc\n
Jul 11 10:22:40 bongo rsyncd[1261]: params.c:Parameter() - Ignoring
badly formed line in configuration file: /Users\n
Jul 11 10:22:40 bongo rsyncd[1261]: params.c:Parameter() - Ignoring
badly formed line in configuration file: /Library/Preferences\n

I edited the files with joe - is the std newline (\n) still
verboten on Apples?

--
Harry Mangalam - Research Computing < at > NACS, E2148, Engineering Gateway,
UC Irvine 92697 949 824 0084(o), 949 285 4487(c)
harry.mangalam < at > uci.edu


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
Harry,

Is your BackupPC server running OS X? I ask because
BackupPC probably will not work with the OS X version
of rsync(d) unless you have a pure OS X environment.
This is because OS X has it's own version of rsync to
deal with resource forks.

http://en.wikipedia.org/wiki/Resource_fork

So even if you do get your *nix BackupPC server to the
point where it all appears to be working, your
archives probably will not include the OS X resource
forks.

Here is the last status I heard on this topic:

http://sourceforge.net/mailarchive/message.php?msg_id=15111620

Peter

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
On Wednesday 12 July 2006 11:25, misterpistolpete wrote:
Harry,

Is your BackupPC server running OS X? I ask because
BackupPC probably will not work with the OS X version
of rsync(d) unless you have a pure OS X environment.
This is because OS X has it's own version of rsync to
deal with resource forks.

Thanks for the info, Peter.
Hmmmm... I now see what you mean. This just looks BAD. What with
the plethora of fragile fixes, this doesn't look good for MacOSX and
backuppc.

FAQ entry - feel free to include if you want? Please vet for
accuracy. markup and links are in wiki format for the hopefully soon
implemented backuppc wiki Wink

-----

== MacOSX ==

Tho not strictly a problem with backuppc, rsync is a basic component
for backuppc and for backing up MacOSX platforms there are some
important tho subtle problems with using rsync. Even tho MacOSX is
a 'real' unix implementation, it rides atop the hybrid
[http://en.wikipedia.org/wiki/HFS_Plus HFS+] filesystem in
which 'files' are actually composed of multiple parts - the data fork
(what we usually think of as the file), the resource fork (which
contains additional information about the file), and further Finder
metadata). The mainline rsync will compile, but not work as expected
on MacOSX. It may appear to work, but it will not transfer the
resource fork and will certainly not restore it. the rsync that is
shipped with MacOSX Tiger (10.4.x) is in fact
[http://archive.macosxlabs.org/rsyncx/rsyncx.html rsyncX], a variant
that has an extra flag (-E) that enables it to work as expected ONLY
when rsyncing between OSX's. There is another rsync variant
[http://www.quesera.com/reynhout/misc/rsync+hfsmode/ rsync_hfsmode]
that provides a backup-only solution by splitting the resource and
data forks into separate files on the fly, but restoring them is a
manual operation - no data lost, but a file will come back in 2
pieces and the Finder metadata is lost. This is fine for single file
restores in a small org, but not for a large-scale backup solution.
From the conversation between the authors of rsyncX, rsync, and
rsync+hfsmode (in 2004), it looked hopeful that OSX support might
make it into the mainstream rsync code tree, but that has not
happened (yet?). The 3 projects are still separate, and rsync+hfsmode
released a new version in Dec, 2005. rsyncX has been static since
2004 and the latest rsync does not appear to support the
data/resource/metadata problem.
[mailto:misterpistolpete < at > yahoo.com mrpistolpete] also gave an overview
of [http://sourceforge.net/mailarchive/message.php?msg_id=15111620
macosx <-> backuppc problems here.]




Thanks to PistolPete for all the info and links.


hjm


So even if you do get your *nix BackupPC server to the
point where it all appears to be working, your
archives probably will not include the OS X resource
forks.

Here is the last status I heard on this topic:

http://sourceforge.net/mailarchive/message.php?msg_id=15111620

Peter

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
Harry Mangalam - Research Computing < at > NACS, E2148, Engineering Gateway,
UC Irvine 92697 949 824 0084(o), 949 285 4487(c)
harry.mangalam < at > uci.edu


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 13 Jul 2006 07:45:44 -0700
Harry Mangalam <harry.mangalam < at > uci.edu> wrote:

On Wednesday 12 July 2006 11:25, misterpistolpete wrote:
Harry,

Is your BackupPC server running OS X? I ask because
BackupPC probably will not work with the OS X version
of rsync(d) unless you have a pure OS X environment.
This is because OS X has it's own version of rsync to
deal with resource forks.

Thanks for the info, Peter.
Hmmmm... I now see what you mean. This just looks BAD. What with
the plethora of fragile fixes, this doesn't look good for MacOSX and
backuppc.

This doesn't mean you have to give up all hope in backuppc. I backup an
OS X client just fine, but I use tar instead of rsync. Since it's on my
local network, the extra bandwidth isn't too much of a problem.

HTH,
Jacob
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEtpG1kpJ43hY3cTURAsbwAJ0a14AHLoJrTaDyq9TTL/gzmiadEgCfanxJ
pcFRcgxoqN7c9wS7b2If0qo=
=FDcg
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
Hi All,

Yes, you're right - Tiger's tar DOES work (a la the AppleDouble
approach of splitting of such files into file and ._file on the Linux
side).

Unfortunately, it was rsync that was the big win and attraction, but
I'll try the tar approach to see if it can do it well enough. We'll
be supporting fewer OSX boxen so it may not be a problem..

Thanks Peter and Jacob for the help and corrections.

Harry


On Thursday 13 July 2006 16:51, misterpistolpete wrote:
Jacob is right,

This doesn't mean you have to give up all hope in
backuppc. I backup an
OS X client just fine, but I use tar instead of
rsync. Since it's on my
local network, the extra bandwidth isn't too much of
a problem.

I have even verified that the standard tar on OS X
works just fine, so don't bother with xtar or hfstar
if you are on OS X 10.4 or higher.

Here are the relevant lines from my config.pl for an
OS X client. Works just fine.

$Conf{TarShareName} = ['/Applications',
'/private/etc', '/Users'];

$Conf{XferMethod} = 'tar';

$Conf{TarClientCmd} = '$sshPath -q -x -n -l root
$host'
. ' $tarPath -c -v -f - -C
$shareName+'
. ' --totals';

$Conf{TarFullArgs} = '$fileList+';

$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root
$host'
. ' $tarPath -x -p --numeric-owner
--same-owner'
. ' -v -f - -C $shareName+';

$Conf{TarClientPath} = '/usr/bin/tar';



Peter

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-------------------------------------------------------------------
------ Using Tomcat but need to do more? Need to support web
services, security? Get stuff done quickly with pre-integrated
technology to make your job easier Download IBM WebSphere
Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1
21642 _______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

--
Harry Mangalam - Research Computing < at > NACS, E2148, Engineering Gateway,
UC Irvine 92697 949 824 0084(o), 949 285 4487(c)
harry.mangalam < at > uci.edu


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
Jacob is right,


This doesn't mean you have to give up all hope in
backuppc. I backup an
OS X client just fine, but I use tar instead of
rsync. Since it's on my
local network, the extra bandwidth isn't too much of
a problem.


I have even verified that the standard tar on OS X
works just fine, so don't bother with xtar or hfstar
if you are on OS X 10.4 or higher.

Here are the relevant lines from my config.pl for an
OS X client. Works just fine.

$Conf{TarShareName} = ['/Applications',
'/private/etc', '/Users'];

$Conf{XferMethod} = 'tar';

$Conf{TarClientCmd} = '$sshPath -q -x -n -l root
$host'
. ' $tarPath -c -v -f - -C
$shareName+'
. ' --totals';

$Conf{TarFullArgs} = '$fileList+';

$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root
$host'
. ' $tarPath -x -p --numeric-owner
--same-owner'
. ' -v -f - -C $shareName+';

$Conf{TarClientPath} = '/usr/bin/tar';



Peter

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
The downside of this for larger installation tho is that it requires
manual intervention to establish the shared ssh keys (for root!) to
allow remote tar'ing of file, no?

(so does the rsyncd config, but in that case all you have to do is
place the "rsyncd.[conf|secrets]" files on the client. (with a
different rsyncd.secrets password for each client of course;
otherwise any client could rsync/read the contents of any other
client).

hjm



On Thursday 13 July 2006 16:51, misterpistolpete wrote:
Jacob is right,

This doesn't mean you have to give up all hope in
backuppc. I backup an
OS X client just fine, but I use tar instead of
rsync. Since it's on my
local network, the extra bandwidth isn't too much of
a problem.

I have even verified that the standard tar on OS X
works just fine, so don't bother with xtar or hfstar
if you are on OS X 10.4 or higher.

Here are the relevant lines from my config.pl for an
OS X client. Works just fine.

$Conf{TarShareName} = ['/Applications',
'/private/etc', '/Users'];

$Conf{XferMethod} = 'tar';

$Conf{TarClientCmd} = '$sshPath -q -x -n -l root
$host'
. ' $tarPath -c -v -f - -C
$shareName+'
. ' --totals';

$Conf{TarFullArgs} = '$fileList+';

$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root
$host'
. ' $tarPath -x -p --numeric-owner
--same-owner'
. ' -v -f - -C $shareName+';

$Conf{TarClientPath} = '/usr/bin/tar';



Peter

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-------------------------------------------------------------------
------ Using Tomcat but need to do more? Need to support web
services, security? Get stuff done quickly with pre-integrated
technology to make your job easier Download IBM WebSphere
Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1
21642 _______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

--
Harry Mangalam - Research Computing < at > NACS, E2148, Engineering Gateway,
UC Irvine 92697 949 824 0084(o), 949 285 4487(c)
harry.mangalam < at > uci.edu


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
On Friday 14 July 2006 12:43, Carl Wilhelm Soderstrom wrote:
On 07/14 10:07 , Harry Mangalam wrote:
The downside of this for larger installation tho is that it
requires manual intervention to establish the shared ssh keys
(for root!) to allow remote tar'ing of file, no?

you should be able to set up a special account on each client
machine, which uses sudo to run tar with root privs. Then set up
the ssh key to only allow the tar command to be run. (with the
command= option in the dsa key on the client side).

Thanks for the advice - both suggestions are helpful. I'll tack them
onto my FAQ for the Mac Smile

But then doesn't this require even more manual intervention? Set up
the extra user, mod the sudoers file? Or is there a way to automate
this?

this is how I back up my machines, and avoid doing a passwordless
ssh login as root.

(so does the rsyncd config, but in that case all you have to do
is place the "rsyncd.[conf|secrets]" files on the client. (with a
different rsyncd.secrets password for each client of course;
otherwise any client could rsync/read the contents of any other
client).

set up your rsyncd to only allow connections from the backup
server. Smile

Thanks for reminding me! That was a key point.


--
Harry Mangalam - Research Computing < at > NACS, E2148, Engineering Gateway,
UC Irvine 92697 949 824 0084(o), 949 285 4487(c)
harry.mangalam < at > uci.edu


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
On Friday 14 July 2006 13:13, Carl Wilhelm Soderstrom wrote:
On 07/14 10:33 , Harry Mangalam wrote:
But then doesn't this require even more manual intervention? Set
up the extra user, mod the sudoers file? Or is there a way to
automate this?

For Debian Linux, our company built a package to automate this
process. Smile I don't know what kind of packaging tools are available
on OSX; but there must be someting.

Want to share that package? Smile

It's probably possible to use Apple's OSX Server & Apple Remote
Desktop to provide a net account that can be configured to do this,
but that's yet another level of $ and complexity (tho in the end it
might simplify the process).

--
Harry Mangalam - Research Computing < at > NACS, E2148, Engineering Gateway,
UC Irvine 92697 949 824 0084(o), 949 285 4487(c)
harry.mangalam < at > uci.edu


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
On 07/14 10:07 , Harry Mangalam wrote:
The downside of this for larger installation tho is that it requires
manual intervention to establish the shared ssh keys (for root!) to
allow remote tar'ing of file, no?

you should be able to set up a special account on each client machine, which
uses sudo to run tar with root privs. Then set up the ssh key to only allow
the tar command to be run. (with the command= option in the dsa key on the
client side).

this is how I back up my machines, and avoid doing a passwordless ssh login
as root.

(so does the rsyncd config, but in that case all you have to do is
place the "rsyncd.[conf|secrets]" files on the client. (with a
different rsyncd.secrets password for each client of course;
otherwise any client could rsync/read the contents of any other
client).

set up your rsyncd to only allow connections from the backup server. Smile

--
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
On 07/14 10:33 , Harry Mangalam wrote:
But then doesn't this require even more manual intervention? Set up
the extra user, mod the sudoers file? Or is there a way to automate
this?

For Debian Linux, our company built a package to automate this process. Smile
I don't know what kind of packaging tools are available on OSX; but there
must be someting.

--
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
On Fri, 2006-07-14 at 10:07 -0700, Harry Mangalam wrote:
The downside of this for larger installation tho is that it requires
manual intervention to establish the shared ssh keys (for root!) to
allow remote tar'ing of file, no?

Some distributions include an 'ssh-copy-id' script that does the
bulk of the work for you if the targets initially allow root logins
over ssh with a password. You run it from the backuppc user/server
specifying root < at > target_host, answer the password prompt and it
copies the key to the right place for subsequent passwordless
logins.

--
Les Mikesell
les < at > futuresource.com




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
On 07/14 11:17 , Harry Mangalam wrote:
For Debian Linux, our company built a package to automate this
process. Smile I don't know what kind of packaging tools are available
on OSX; but there must be someting.

Want to share that package? Smile

sure; if I can find it. I didn't do the work.
I'm presuming you're just looking at the logic in it... or do you have some
Debian boxen?

--
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post chdir failed error using rsyncd on MacOSX 
On 07/14 11:17 , Harry Mangalam wrote:
For Debian Linux, our company built a package to automate this
process. Smile I don't know what kind of packaging tools are available
on OSX; but there must be someting.

Want to share that package? Smile

I've sent a copy off to Harry. If anyone else wants it, just let me know
privately.

--
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB