rsync not working
up vote
0
down vote
favorite
How do I exclude a folder when using rsync ?
rsync -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/
And this is the message I got. But I went into the server and did not see the copied file.
skipping directory .
<f..T...... id_rsantu
I included --exclude= but it is still copying from /media/kong/Elements/sgan/dataset/
because I see
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012818.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012819.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012820.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012821.png
rsync
add a comment |
up vote
0
down vote
favorite
How do I exclude a folder when using rsync ?
rsync -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/
And this is the message I got. But I went into the server and did not see the copied file.
skipping directory .
<f..T...... id_rsantu
I included --exclude= but it is still copying from /media/kong/Elements/sgan/dataset/
because I see
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012818.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012819.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012820.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012821.png
rsync
The syntax is--exclude=PATTERN
, you missed an=
there
– Jos
Nov 29 at 11:23
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
How do I exclude a folder when using rsync ?
rsync -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/
And this is the message I got. But I went into the server and did not see the copied file.
skipping directory .
<f..T...... id_rsantu
I included --exclude= but it is still copying from /media/kong/Elements/sgan/dataset/
because I see
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012818.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012819.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012820.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012821.png
rsync
How do I exclude a folder when using rsync ?
rsync -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/
And this is the message I got. But I went into the server and did not see the copied file.
skipping directory .
<f..T...... id_rsantu
I included --exclude= but it is still copying from /media/kong/Elements/sgan/dataset/
because I see
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012818.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012819.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012820.png
<f+++++++++ dataset/train/Ouchy-2-Left-crops/crossing/0000000159/0000012821.png
rsync
rsync
edited Nov 29 at 11:27
asked Nov 29 at 11:19
Kong
2841618
2841618
The syntax is--exclude=PATTERN
, you missed an=
there
– Jos
Nov 29 at 11:23
add a comment |
The syntax is--exclude=PATTERN
, you missed an=
there
– Jos
Nov 29 at 11:23
The syntax is
--exclude=PATTERN
, you missed an =
there– Jos
Nov 29 at 11:23
The syntax is
--exclude=PATTERN
, you missed an =
there– Jos
Nov 29 at 11:23
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
you need to use -r flag:
rsync -r -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/
from man rsync:
-r, --recursive recurse into directories
but its still copying stuff from /media/kong/Elements/sgan/dataset/
– Kong
Nov 29 at 11:25
1
that's becasue your exclude should only include path of the copied path:--exclude dataset/
because/media/kong/Elements/sgan
is where the sync starts
– janmyszkier
Nov 29 at 11:27
thank you very much !
– Kong
Nov 29 at 11:29
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
you need to use -r flag:
rsync -r -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/
from man rsync:
-r, --recursive recurse into directories
but its still copying stuff from /media/kong/Elements/sgan/dataset/
– Kong
Nov 29 at 11:25
1
that's becasue your exclude should only include path of the copied path:--exclude dataset/
because/media/kong/Elements/sgan
is where the sync starts
– janmyszkier
Nov 29 at 11:27
thank you very much !
– Kong
Nov 29 at 11:29
add a comment |
up vote
1
down vote
accepted
you need to use -r flag:
rsync -r -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/
from man rsync:
-r, --recursive recurse into directories
but its still copying stuff from /media/kong/Elements/sgan/dataset/
– Kong
Nov 29 at 11:25
1
that's becasue your exclude should only include path of the copied path:--exclude dataset/
because/media/kong/Elements/sgan
is where the sync starts
– janmyszkier
Nov 29 at 11:27
thank you very much !
– Kong
Nov 29 at 11:29
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
you need to use -r flag:
rsync -r -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/
from man rsync:
-r, --recursive recurse into directories
you need to use -r flag:
rsync -r -i /home/kong/.ssh/id_rsantu --exclude /media/kong/Elements/sgan/dataset/ /media/kong/Elements/sgan/ kongserver@35.123.456.78:~/
from man rsync:
-r, --recursive recurse into directories
answered Nov 29 at 11:22
janmyszkier
50827
50827
but its still copying stuff from /media/kong/Elements/sgan/dataset/
– Kong
Nov 29 at 11:25
1
that's becasue your exclude should only include path of the copied path:--exclude dataset/
because/media/kong/Elements/sgan
is where the sync starts
– janmyszkier
Nov 29 at 11:27
thank you very much !
– Kong
Nov 29 at 11:29
add a comment |
but its still copying stuff from /media/kong/Elements/sgan/dataset/
– Kong
Nov 29 at 11:25
1
that's becasue your exclude should only include path of the copied path:--exclude dataset/
because/media/kong/Elements/sgan
is where the sync starts
– janmyszkier
Nov 29 at 11:27
thank you very much !
– Kong
Nov 29 at 11:29
but its still copying stuff from /media/kong/Elements/sgan/dataset/
– Kong
Nov 29 at 11:25
but its still copying stuff from /media/kong/Elements/sgan/dataset/
– Kong
Nov 29 at 11:25
1
1
that's becasue your exclude should only include path of the copied path:
--exclude dataset/
because /media/kong/Elements/sgan
is where the sync starts– janmyszkier
Nov 29 at 11:27
that's becasue your exclude should only include path of the copied path:
--exclude dataset/
because /media/kong/Elements/sgan
is where the sync starts– janmyszkier
Nov 29 at 11:27
thank you very much !
– Kong
Nov 29 at 11:29
thank you very much !
– Kong
Nov 29 at 11:29
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097085%2frsync-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The syntax is
--exclude=PATTERN
, you missed an=
there– Jos
Nov 29 at 11:23