SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Problem with rsync_long_args and --rsync-path
Author Message
Post Problem with rsync_long_args and --rsync-path 
Hi folks,

at first I'm _not_ subscribed so please reply to the ML and to me.

I'm trying to set up rsnapshot to use a different rsync command because
a direct root-Login is not possible. The configuration file contains this:

rsync_long_args --delete --numeric-ids --relative --delete-excluded
--stats --rsync-path="sudo /root/admin/web/scripts/wsafe.rsync"

All in one line and a tabulator after rsync_log_args. When I run
Rsnapshot with -t it shows the right rsync-command:

/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded \
--stats --rsync-path="sudo /root/admin/web/scripts/wsafe.rsync" \
--exclude=/tmp --exclude=/proc --exclude=/sys --exclude=/dev \
--exclude=/lost+found --rsh=/usr/bin/ssh \
user < at > web1:/var/spool/cron/crontabs \
/var/cache/rsnapshot/web1/daily.0/./

But running rsnapshot gives me this error:

rsync: link_stat "/root/admin/web/scripts/wsafe.rsync"" failed: No such
file or directory (2)
rsync: link_stat "/root/user < at > web1:/var/spool/cron/crontabs" failed: No
such file or directory (2)

When I run the above command manually(cut&paste) it all works fine. Am I
missing something? Any help would be much appreciated.

Cheers, Markus

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Problem with rsync_long_args and --rsync-path 
Mon, 22 Feb 2010 16:09:32 +0100 -n
Markus Uckelmann <markus.uckelmann < at > koeln.de> írta:

Hi folks,

at first I'm _not_ subscribed so please reply to the ML and to me.

I'm trying to set up rsnapshot to use a different rsync command because
a direct root-Login is not possible. The configuration file contains this:

rsync_long_args --delete --numeric-ids --relative --delete-excluded
--stats --rsync-path="sudo /root/admin/web/scripts/wsafe.rsync"

All in one line and a tabulator after rsync_log_args. When I run
Rsnapshot with -t it shows the right rsync-command:

/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded \
--stats --rsync-path="sudo /root/admin/web/scripts/wsafe.rsync" \
--exclude=/tmp --exclude=/proc --exclude=/sys --exclude=/dev \
--exclude=/lost+found --rsh=/usr/bin/ssh \
user < at > web1:/var/spool/cron/crontabs \
/var/cache/rsnapshot/web1/daily.0/./

But running rsnapshot gives me this error:

rsync: link_stat "/root/admin/web/scripts/wsafe.rsync"" failed: No such
file or directory (2)
rsync: link_stat "/root/user < at > web1:/var/spool/cron/crontabs" failed: No
such file or directory (2)

When I run the above command manually(cut&paste) it all works fine. Am I
missing something? Any help would be much appreciated.

Cheers, Markus

Hi,

The --rsync-path contain a space, and you are using the ". Probe a
simple '.

Aleph Smile

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Problem with rsync_long_args and --rsync-path 
On Mon, 2010-02-22 at 16:09 +0100, Markus Uckelmann wrote:
rsync_long_args --delete --numeric-ids --relative --delete-excluded
--stats --rsync-path="sudo /root/admin/web/scripts/wsafe.rsync"

rsync: link_stat "/root/admin/web/scripts/wsafe.rsync"" failed: No such
file or directory (2)
rsync: link_stat "/root/user < at > web1:/var/spool/cron/crontabs" failed: No
such file or directory (2)

That's the infamous rsync_long_args quoting issue; see:

https://sourceforge.net/mailarchive/forum.php?thread_name=1257354362.5440.19.camel%40mattlaptop2.local&forum_name=rsnapshot-discuss

Applying the following two patches from the development version of
rsnapshot should fix the issue:

http://rsnapshot.cvs.sourceforge.net/viewvc/rsnapshot/rsnapshot/rsnapshot-program.pl?r1=1.413&r2=1.414
http://rsnapshot.cvs.sourceforge.net/viewvc/rsnapshot/rsnapshot/rsnapshot-program.pl?r1=1.416&r2=1.417

--
Matt


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

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