Results 1 to 3 of 3

Thread: rsync recursive

  1. #1
    Join Date
    Feb 2010
    Location
    nh,usa
    Posts
    154

    Default rsync recursive

    Using OpenSuse V13.2

    I'm trying to copy all the mp3s, under a directory, onto a thumbdrive, and replicating the directory structure on the thumbdrive, by using the following command

    Code:
     rsync --recursive --checksum --verbose  --progress --stats  --log-file=/home/john/Eight_Copy_Log.txt    /home/john/___John/All/*.mp3     /var/run/media/john/F009-64A5
    rsync doesn't recurse into the subdirectories when *.mp3 is present.


    Without the *.mp3, everything gets copied.

    I've tried many permutations with include file, exclude file with no luck.

    I must be overlooking something.

    Thank you.
    Regards,

    RIH5342

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,448

    Default Re: rsync recursive

    If you read man rsync you will find that rsync copies whole folders into whole folders; what you are doing is asking rsync to copy the folder *.mp3 recursively; as this folder does not exist, it ignores the recursive instruction. Note that rsync creates the folders before it copies the files; so once it gets to something it cannot do, it leaves what it has done.

  3. #3
    Join Date
    Feb 2010
    Location
    nh,usa
    Posts
    154

    Default Re: rsync recursive

    Folders, makes sense now, thank you.
    Regards,

    RIH5342

Posting Permissions

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