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). ...
- 05-28-2008 #1Just 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?
- 05-29-2008 #2Just Joined!
- Join Date
- Mar 2008
- Location
- Texas
- Posts
- 4
Can somoene please help me?
- 05-29-2008 #3I've never used rsync, byt yes, I'm fairly sure there is.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?
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!Can someone please help me?
If you don't know how to write bash scripts, google this:
and start reading. Perhaps someone else will enter the thread and post a pointer to his or her favorite tutorial.Code:bash tutorial
If you already know how to write bash scripts, then do this at the command prompt:
If that man page is not installed on your system, then google this:Code:man rsync
and you're on your way!Code:man rsync linux
Hope this helps.--
Bill
Old age and treachery will overcome youth and skill.
- 05-29-2008 #4Just Joined!
- Join Date
- Mar 2008
- Location
- Texas
- Posts
- 4
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.
- 05-29-2008 #5Now we're getting somewhere. Can we see your code?I was working on a for loop but that keeps starting new processes for each number.--
Bill
Old age and treachery will overcome youth and skill.


Reply With Quote
