Find the answer to your Linux question:
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. ...
  1. #1
    Just 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
    Code:
    curlftpfs -o user=myusernamec@mydomain.com:mypassword ftp://ftp.mydomain.com ~/ftp_backups
    so far so good (I think)

    2. I then try to sync the files
    Code:
    rsync -a -r --no-o --no-g --safe-links --exclude=mkstemp --progress /somefolder ~/ftp_backups/someotherfolder/
    and it all goes bonkers in the form of this error:
    rsync: mkstemp "/someotherfolder/.prova.txt.2NZFm5" failed: Operation not supported (95)
    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.

    Any help will be greatly appreciated.

  2. #2
    Linux 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).

  3. #3
    Just 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:
    Code:
    rsync -a -r --no-o --no-g --safe-links --tempdir=/var/tmp/rsync --progress /somefolder ~/ftp_backups/someotherfolder/
    I get this error:
    Code:
    rsync: --tempdir=/var/tmp/rsync: unknown option
    rsync error: syntax or usage error (code 1) at main.c(1441) [client=3.0.3]
    Most likely it is just me messing it up, what is it I am doing wrong?

  4. #4
    Just 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

  5. #5
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    (it should have been --temp-dir=...)
    Oops, sorry `bout that.

  6. #6
    Just Joined! alaunay's Avatar
    Join Date
    Jun 2010
    Location
    Paris, France
    Posts
    1
    I just tried, temp-dir is accepted, but the rsync still goes mkstemp-foo... Any idea ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...