Find the answer to your Linux question:
Results 1 to 5 of 5
I am trying to find a way in rsync to used a bash script that can get a range of directories. The directories are numbers (1 2 3 4 etc). ...
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Location
    Texas
    Posts
    4

    Rsync help

    I am trying to find a way in rsync to used a bash script that can get a range of directories. The directories are numbers (1 2 3 4 etc). What I would like to do is get with 1 rsync process to get directories 1 - 40 and then exclude all the others. Then continue down until I get all the folders. Is there a way this can be done?

  2. #2
    Just Joined!
    Join Date
    Mar 2008
    Location
    Texas
    Posts
    4
    Can somoene please help me?

  3. #3
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    What I would like to do is get with 1 rsync process to get directories 1 - 40 and then exclude all the others. Then continue down until I get all the folders. Is there a way this can be done?
    I've never used rsync, byt yes, I'm fairly sure there is.
    Can someone please help me?
    Absolutely. Pretty much all of us here have lives, so we won't write the script for you, of course, and we won't hold your hand through every step of learning about bash scripting, but post a script that doesn't work and we'll see what we can do!

    If you don't know how to write bash scripts, google this:
    Code:
    bash tutorial
    and start reading. Perhaps someone else will enter the thread and post a pointer to his or her favorite tutorial.

    If you already know how to write bash scripts, then do this at the command prompt:
    Code:
    man rsync
    If that man page is not installed on your system, then google this:
    Code:
    man rsync linux
    and you're on your way!

    Hope this helps.
    --
    Bill

    Old age and treachery will overcome youth and skill.

  4. #4
    Just Joined!
    Join Date
    Mar 2008
    Location
    Texas
    Posts
    4
    Quote Originally Posted by wje_lf View Post
    I've never used rsync, byt yes, I'm fairly sure there is.

    Absolutely. Pretty much all of us here have lives, so we won't write the script for you, of course, and we won't hold your hand through every step of learning about bash scripting, but post a script that doesn't work and we'll see what we can do!

    If you don't know how to write bash scripts, google this:
    Code:
    bash tutorial
    and start reading. Perhaps someone else will enter the thread and post a pointer to his or her favorite tutorial.

    If you already know how to write bash scripts, then do this at the command prompt:
    Code:
    man rsync
    If that man page is not installed on your system, then google this:
    Code:
    man rsync linux
    and you're on your way!

    Hope this helps.
    wje_lf i understand you all have lifes. So do I. I see responses on the forums and mine not getting one response for a day and it makes me feel like because I am new to this I am not worthy to post here.

    I have tried to google to see if I can find a premade way of doing this using a regex string or something of that nature. I was working on a for loop but that keeps starting new processes for each number.

  5. #5
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    I was working on a for loop but that keeps starting new processes for each number.
    Now we're getting somewhere. Can we see your code?
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

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