Results 1 to 6 of 6
Hi there,
I am trying to sync some local files to a shared host ftp account (bluehost). Here is what I am trying (everything is in a .sh file):
1. ...
- 02-08-2009 #1Just Joined!
- Join Date
- Jun 2004
- Posts
- 12
rsync over ftp problem
Hi there,
I am trying to sync some local files to a shared host ftp account (bluehost). Here is what I am trying (everything is in a .sh file):
1. I mount the ftp location with curlftps
so far so good (I think)Code:curlftpfs -o user=myusernamec@mydomain.com:mypassword ftp://ftp.mydomain.com ~/ftp_backups
2. I then try to sync the files
and it all goes bonkers in the form of this error:Code:rsync -a -r --no-o --no-g --safe-links --exclude=mkstemp --progress /somefolder ~/ftp_backups/someotherfolder/
I believe this has something to do with all files in the ftp mount being owned by root instead of my user, but at this point I don't know what to do. I tried many options and managed to get rid of a previous chgrp error, but I couldn't find anything related to this after a few hours of research.rsync: mkstemp "/someotherfolder/.prova.txt.2NZFm5" failed: Operation not supported (95)
Any help will be greatly appreciated.
- 02-08-2009 #2Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
since rsync is being invoked locally, it's trying to make its temp file off the source tree instead of the destination. This can be overridden, try adding the option --tempdir=/var/tmp/rsync (you might have to make the tmp/rsync folder first).
- 02-10-2009 #3Just Joined!
- Join Date
- Jun 2004
- Posts
- 12
Hi D-cat,
thanks for answering but sadly your suggestion does not seem to be understood by rsync. When I use:
I get this error:Code:rsync -a -r --no-o --no-g --safe-links --tempdir=/var/tmp/rsync --progress /somefolder ~/ftp_backups/someotherfolder/
Most likely it is just me messing it up, what is it I am doing wrong?Code:rsync: --tempdir=/var/tmp/rsync: unknown option rsync error: syntax or usage error (code 1) at main.c(1441) [client=3.0.3]
- 02-10-2009 #4Just Joined!
- Join Date
- Jun 2004
- Posts
- 12
hi again, I found the code spelling was wrong (it should have been --temp-dir=...)
still not working though, does not seem to find any files or folders for some reason.
I will look into it and post later (or even tomorrow)
Tx
- 02-10-2009 #5Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
Oops, sorry `bout that.(it should have been --temp-dir=...)
- 06-19-2010 #6
I just tried, temp-dir is accepted, but the rsync still goes mkstemp-foo... Any idea ?


Reply With Quote