Why does rsync keep skipping the directory I want to sync? [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















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.










share|improve this 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 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 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















2















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.










share|improve this 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 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 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













2












2








2








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 20 at 22:48









DaveDave

44912040




44912040




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 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 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





    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











  • @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










1 Answer
1






active

oldest

votes


















1














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.






share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    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.






    share|improve this answer



























      1














      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.






      share|improve this answer

























        1












        1








        1







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 20 at 23:23









        AtulAtul

        4752621




        4752621












            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?