Results 1 to 3 of 3

Thread: Rsync Issue

  1. #1
    Join Date
    Sep 2008
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Rsync Issue

    I'm using Rsync to move files from a remote computer (running the rsync daemon), but I need to have everything, files and folders, on the sender be removed if the transfer was successful. This is the command I'm using:

    rsync -rlpEthSWog --progress --stats --update --remove-source-files --password-file=/server/rsync-batchpass rsync://yamada@10.0.0.2/outbox/ /server/raid/inbox/

    It seems like other people have had issues with rsync only deleting files in my Google searches, but the solution they found was to run "rm -fr ./" on the source directory. In my case that's not an option since I don't have access to a shell on the sender.

    Anyone have any ideas?

  2. #2
    Join Date
    May 2012
    Beans
    1

    Re: Rsync Issue

    You can try --delete-after to do any file level cleanup.

  3. #3
    Join Date
    Sep 2008
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Rsync Issue

    Thanks, but --delete-after has the receiver delete files that were not part of the transfer. I need the sender to delete files after the transfer.

Tags for this Thread

Bookmarks

Posting Permissions

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