Why does rsync keep skipping the directory I want to sync? [closed]
I want to sync a directory between my Mac High Sierra machine and a CentOs 7 machine, excluding a certain file. I have tried the below
(venv) localhost:dental davea$ rsync -e 'ssh -p 7822' --exclude='dental/wsgi.py' ~/Documents/workspace/dental/ laredotornado@remotedomen.com:/home/laredotornado
skipping directory /Users/davea/Documents/workspace/dental/.
I don't quite understand why it is always skipping the file I want to sync with. I have verified both the local and remote driectories exist but don't know where else to check as to why things are falling down.
shell centos rsync synchronization
closed as off-topic by Kusalananda, Stephen Harris, jimmij, Stephen Kitt, Christopher Feb 21 at 12:43
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Kusalananda, Stephen Harris, jimmij, Stephen Kitt, Christopher
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I want to sync a directory between my Mac High Sierra machine and a CentOs 7 machine, excluding a certain file. I have tried the below
(venv) localhost:dental davea$ rsync -e 'ssh -p 7822' --exclude='dental/wsgi.py' ~/Documents/workspace/dental/ laredotornado@remotedomen.com:/home/laredotornado
skipping directory /Users/davea/Documents/workspace/dental/.
I don't quite understand why it is always skipping the file I want to sync with. I have verified both the local and remote driectories exist but don't know where else to check as to why things are falling down.
shell centos rsync synchronization
closed as off-topic by Kusalananda, Stephen Harris, jimmij, Stephen Kitt, Christopher Feb 21 at 12:43
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Kusalananda, Stephen Harris, jimmij, Stephen Kitt, Christopher
If this question can be reworded to fit the rules in the help center, please edit the question.
3
Are you expecting it to do a recursive sync? Did you forget--archive
or-a
?
– Kusalananda
Feb 20 at 22:51
Are you running this from thedental
directory? If you just want to exclude that file and you are already in thedental
directory then you can specify the file itself with--exclude 'wsgi.py'
as the path is already relative as far asrsync
is concerned.
– Nasir Riley
Feb 20 at 22:58
@Kusalananda, that was it! Including "-a" moves stuff along.
– Dave
Feb 20 at 23:04
@Kusalananda Please propose your comment as answer and help close this question.
– Atul
Feb 20 at 23:10
2
@Atul I'm treating it as a typo. You may want to write a proper answer, explaining what's going on and how adding-a
solves it, if you wish.
– Kusalananda
Feb 20 at 23:13
add a comment |
I want to sync a directory between my Mac High Sierra machine and a CentOs 7 machine, excluding a certain file. I have tried the below
(venv) localhost:dental davea$ rsync -e 'ssh -p 7822' --exclude='dental/wsgi.py' ~/Documents/workspace/dental/ laredotornado@remotedomen.com:/home/laredotornado
skipping directory /Users/davea/Documents/workspace/dental/.
I don't quite understand why it is always skipping the file I want to sync with. I have verified both the local and remote driectories exist but don't know where else to check as to why things are falling down.
shell centos rsync synchronization
I want to sync a directory between my Mac High Sierra machine and a CentOs 7 machine, excluding a certain file. I have tried the below
(venv) localhost:dental davea$ rsync -e 'ssh -p 7822' --exclude='dental/wsgi.py' ~/Documents/workspace/dental/ laredotornado@remotedomen.com:/home/laredotornado
skipping directory /Users/davea/Documents/workspace/dental/.
I don't quite understand why it is always skipping the file I want to sync with. I have verified both the local and remote driectories exist but don't know where else to check as to why things are falling down.
shell centos rsync synchronization
shell centos rsync synchronization
asked Feb 20 at 22:48
DaveDave
44412040
44412040
closed as off-topic by Kusalananda, Stephen Harris, jimmij, Stephen Kitt, Christopher Feb 21 at 12:43
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Kusalananda, Stephen Harris, jimmij, Stephen Kitt, Christopher
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by Kusalananda, Stephen Harris, jimmij, Stephen Kitt, Christopher Feb 21 at 12:43
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Kusalananda, Stephen Harris, jimmij, Stephen Kitt, Christopher
If this question can be reworded to fit the rules in the help center, please edit the question.
3
Are you expecting it to do a recursive sync? Did you forget--archive
or-a
?
– Kusalananda
Feb 20 at 22:51
Are you running this from thedental
directory? If you just want to exclude that file and you are already in thedental
directory then you can specify the file itself with--exclude 'wsgi.py'
as the path is already relative as far asrsync
is concerned.
– Nasir Riley
Feb 20 at 22:58
@Kusalananda, that was it! Including "-a" moves stuff along.
– Dave
Feb 20 at 23:04
@Kusalananda Please propose your comment as answer and help close this question.
– Atul
Feb 20 at 23:10
2
@Atul I'm treating it as a typo. You may want to write a proper answer, explaining what's going on and how adding-a
solves it, if you wish.
– Kusalananda
Feb 20 at 23:13
add a comment |
3
Are you expecting it to do a recursive sync? Did you forget--archive
or-a
?
– Kusalananda
Feb 20 at 22:51
Are you running this from thedental
directory? If you just want to exclude that file and you are already in thedental
directory then you can specify the file itself with--exclude 'wsgi.py'
as the path is already relative as far asrsync
is concerned.
– Nasir Riley
Feb 20 at 22:58
@Kusalananda, that was it! Including "-a" moves stuff along.
– Dave
Feb 20 at 23:04
@Kusalananda Please propose your comment as answer and help close this question.
– Atul
Feb 20 at 23:10
2
@Atul I'm treating it as a typo. You may want to write a proper answer, explaining what's going on and how adding-a
solves it, if you wish.
– Kusalananda
Feb 20 at 23:13
3
3
Are you expecting it to do a recursive sync? Did you forget
--archive
or -a
?– Kusalananda
Feb 20 at 22:51
Are you expecting it to do a recursive sync? Did you forget
--archive
or -a
?– Kusalananda
Feb 20 at 22:51
Are you running this from the
dental
directory? If you just want to exclude that file and you are already in the dental
directory then you can specify the file itself with --exclude 'wsgi.py'
as the path is already relative as far as rsync
is concerned.– Nasir Riley
Feb 20 at 22:58
Are you running this from the
dental
directory? If you just want to exclude that file and you are already in the dental
directory then you can specify the file itself with --exclude 'wsgi.py'
as the path is already relative as far as rsync
is concerned.– Nasir Riley
Feb 20 at 22:58
@Kusalananda, that was it! Including "-a" moves stuff along.
– Dave
Feb 20 at 23:04
@Kusalananda, that was it! Including "-a" moves stuff along.
– Dave
Feb 20 at 23:04
@Kusalananda Please propose your comment as answer and help close this question.
– Atul
Feb 20 at 23:10
@Kusalananda Please propose your comment as answer and help close this question.
– Atul
Feb 20 at 23:10
2
2
@Atul I'm treating it as a typo. You may want to write a proper answer, explaining what's going on and how adding
-a
solves it, if you wish.– Kusalananda
Feb 20 at 23:13
@Atul I'm treating it as a typo. You may want to write a proper answer, explaining what's going on and how adding
-a
solves it, if you wish.– Kusalananda
Feb 20 at 23:13
add a comment |
1 Answer
1
active
oldest
votes
The rsync command didnt include the /Users/davea/Documents/workspace/dental/
directory as the -a
was not used. Adding -a
flag also includes the -r
(recursive) flag in the operation thus allowing the directory to be part of the process.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The rsync command didnt include the /Users/davea/Documents/workspace/dental/
directory as the -a
was not used. Adding -a
flag also includes the -r
(recursive) flag in the operation thus allowing the directory to be part of the process.
add a comment |
The rsync command didnt include the /Users/davea/Documents/workspace/dental/
directory as the -a
was not used. Adding -a
flag also includes the -r
(recursive) flag in the operation thus allowing the directory to be part of the process.
add a comment |
The rsync command didnt include the /Users/davea/Documents/workspace/dental/
directory as the -a
was not used. Adding -a
flag also includes the -r
(recursive) flag in the operation thus allowing the directory to be part of the process.
The rsync command didnt include the /Users/davea/Documents/workspace/dental/
directory as the -a
was not used. Adding -a
flag also includes the -r
(recursive) flag in the operation thus allowing the directory to be part of the process.
answered Feb 20 at 23:23
AtulAtul
4772621
4772621
add a comment |
add a comment |
3
Are you expecting it to do a recursive sync? Did you forget
--archive
or-a
?– Kusalananda
Feb 20 at 22:51
Are you running this from the
dental
directory? If you just want to exclude that file and you are already in thedental
directory then you can specify the file itself with--exclude 'wsgi.py'
as the path is already relative as far asrsync
is concerned.– Nasir Riley
Feb 20 at 22:58
@Kusalananda, that was it! Including "-a" moves stuff along.
– Dave
Feb 20 at 23:04
@Kusalananda Please propose your comment as answer and help close this question.
– Atul
Feb 20 at 23:10
2
@Atul I'm treating it as a typo. You may want to write a proper answer, explaining what's going on and how adding
-a
solves it, if you wish.– Kusalananda
Feb 20 at 23:13