# Linux (using cli): how to sync (and keep it synced) a selected folder and all its content

**URL:** <https://forum.odrive.com/t/linux-using-cli-how-to-sync-and-keep-it-synced-a-selected-folder-and-all-its-content/2615>\
**Category:** I Have a Question\
**Tags:** linux\
**Created:** [June 17, 2017, 4:23pm UTC](https://forum.odrive.com/t/linux-using-cli-how-to-sync-and-keep-it-synced-a-selected-folder-and-all-its-content/2615 "2017-06-17T16:23:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [June 20, 2017, 12:08am UTC](https://forum.odrive.com/t/linux-using-cli-how-to-sync-and-keep-it-synced-a-selected-folder-and-all-its-content/2615/2 "2017-06-20T00:08:07Z")

</div>

Hi @mario,  
Take a look here for one-liner examples to perform recursive sync: [Odrive Sync Agent: A CLI/scriptable interface for odrive's Progressive Sync Engine for Linux, OS X, and Windows - #13 by Tony](https://forum.odrive.com/t/odrive-sync-agent-a-cli-scriptable-interface-for-odrives-progressive-sync-engine-for-linux-os-x-and-windows/499/13)

You can also take a look at this post below:

> [@Linux (using cli): how to sync (and keep it synced) a selected folder and all its content](https://forum.odrive.com/t/linux-using-cli-how-to-sync-and-keep-it-synced-a-selected-folder-and-all-its-content/2615/8):
>
> Hi @william.melatini, odrivecli will not perform recursion on its own but the script can. Make sure the folder you want to recursively sync has been synced once so that you are performing this on an actual folder and not a placeholder. Since the command is using find to recurse through the structure, it needs to start with a real folder. This is the command I use on my own system: date; exec 6\>&1;num\_procs=4;output="go"; while ["$output"]; do output=$(find "[insert path of the folder you wa…

Additionally, I forked the CLI and added recursive sync here: [GitHub - amagliul/odrive-utilities: Utilities for odrive](https://github.com/amagliul/odrive-utilities)

---

_[View the full topic](https://forum.odrive.com/t/linux-using-cli-how-to-sync-and-keep-it-synced-a-selected-folder-and-all-its-content/2615)._
