samba-bugs at samba.org
2010-May-13 06:19 UTC
DO NOT REPLY [Bug 7425] New: --files-from= broken when run from crontab
https://bugzilla.samba.org/show_bug.cgi?id=7425
Summary: --files-from= broken when run from crontab
Product: rsync
Version: 3.0.7
Platform: x64
OS/Version: Linux
Status: NEW
Severity: blocker
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: bgcladd at gmail.com
QAContact: rsync-qa at samba.org
running rsync version 3.0.7 (also tried rsync-HEAD-20100501-0829GMT) debian
lenny amd64, if i call a shell script with the content:
rsync -a -e 'ssh -i /home/mapsync/.ssh/id_rsa' --bwlimit=1221
--files-from=/tmp/tf2maplist --no-relative /
mapsync at foo.com:/home/mapsync/tf2maps
Everything runs great from a shell. /tmp/tf2maplist is a file which contains
one line at a time the location of all the .bsp files found in /home, here is a
snippet from /tmp/tf2maplist:
/home/user1/srcds_l/orangebox/tf/maps/cp_generator_b4b.bsp
/home/user2/srcds_l/orangebox/tf/maps/cp_orange_n5_final.bsp
When run from the root crontab this error occurs:
rsync: change_dir "/root/home/user1/srcds_l/orangebox/tf/maps" failed:
No such
file or directory (2)
How do i stop rsync from prepending /root/ to the front of every line when run
from cron? Thanks!
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2010-May-13 16:45 UTC
DO NOT REPLY [Bug 7425] --files-from= broken when run from crontab
https://bugzilla.samba.org/show_bug.cgi?id=7425 ------- Comment #1 from matt at mattmccutchen.net 2010-05-13 11:45 CST ------- *** Bug 7426 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2010-Aug-22 10:47 UTC
DO NOT REPLY [Bug 7425] --files-from= broken when run from crontab
https://bugzilla.samba.org/show_bug.cgi?id=7425
devzero at web.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |devzero at web.de
------- Comment #2 from devzero at web.de 2010-08-22 05:47 CST -------
you mean, running this from the root user`s shell works but behaves differently
from the root crontab ?
you should check what differences exist in the environment when running from
cron.
typically, inside cron the environment is different from the shell one and also
more minimalistic, so you may have a different $PATH and perhaps it`s a
completely different rsync you are using (if there is more then one on your
system)
i recommend adding "set >/tmp/printenv_from_xyz.txt;which
rsync>>/tmp/printenv_from_xyz.txt" and produce two files, one from a
manual run and
one from cron - and compare these for differences.
if you don`t get a clue, you may upload them here, maybe some other person
get`s a clue....
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2010-Dec-18 20:59 UTC
DO NOT REPLY [Bug 7425] --files-from= broken when run from crontab
https://bugzilla.samba.org/show_bug.cgi?id=7425 ------- Comment #3 from wayned at samba.org 2010-12-18 14:59 CST ------- I not seeing how rsync could prefix something other than the source arg that was specified on the command-line. Is the cron command specifying /root or "~" instead of "/"? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2011-Feb-22 15:06 UTC
DO NOT REPLY [Bug 7425] --files-from= broken when run from crontab
https://bugzilla.samba.org/show_bug.cgi?id=7425
wayned at samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
------- Comment #4 from wayned at samba.org 2011-02-22 09:06 CST -------
If you have more information that indicates that this is an rsync issue, feel
free to supply it. Otherwise, I'm closing this.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.