![]() Many of the shown stages will apply the same to this other methodology of giving UNIX shell capabilities to your Microsoft host.Applies to: Windows 11, Windows 10, Windows Server 2022, Windows Server 2019, Windows Server 2016 This would need you to share the watched and synced folders over the local network, better a private network between your host and the virtual machine only, and then mounting the folders from GNU/Linux using the cifs-utils, samba and smbclient packages. For example you can autostart a GNU/Linux virtual machine that would do all of this without Cygwin. This may be a hard walkthrough but there are a lot of community support in the Internet for all the stages. (10.) As optional future steps you may want to daemonize the process in any way. If you did not start cygwin yet, that should be the process doing the synchronization. (9.) Check with taskmgr.exe or the Microsoft Task Manager that there is a bash.exe running. That is not the truly way of doing this kind of thing, but should be just OK for now. That is a line that would call the infinite syncing loop. ~/.bashrc contents (this is the hard thing to do, because you need to edit it with vi from Cygwin, but you can most probably work this around by editing from Microsoft the file DRIVE_LETTER:\PATH\TO\CYGWIN\home\YOUR_USER_NAME.bashrc: Sync.bat contents: rem call the synchronization neverending script. ![]() (7.) Edit sync.bat and Cygwin's ~/.bashrc: (6.) Name the file sync.bat or something. From this point changes will be run effectively with no Microsoft thrashbin support. Once you are satisfied with the results, turn -avn to -av to deactivate the dry running at your own risk. (3.) Do some testing with manual calls to sync.sh from cygwin. Rsync -avn -delete WATCHED_FOLDER SYNCED_FOLDER SYNCED_FOLDER=/cygdrive/DRIVE_LETTER/PATH/TO/SYNCED/FOLDER WATCHED_FOLDER=/cygdrive/DRIVE_LETTER/PATH/TO/WATCHED/FOLDER (2.) After you move around in cygwin getting a basic understanding of the environment, edit sync.sh whenever you want (you may later move it to a better location). Whenever you need another package in the future. If you miss it you can safely rerun this installer whenever you want. Beware to select rsync in the list of packages to select. I know I can move all my files inside Dropbox folder and create the junctions/symlinks at their original locations but I want to do it the other way around.Īlso what is the difference between choosing the Junction and Symbolic Link Option in regards to a folder?įor a more advanced but better solution you can combine a rsync powered cygwin installation with a init batch script calling a cygwin shell script that would trigger - whenever scripted - a synchronization of the synchronized with the trusted 3rd party cloud storage folder with the contents lying in the watched folder. If I manually select Pause Syncing from Dropbox system tray icon and then Resume syncing = it uploads the changes to the server. The exact same behaviour with the Symbolic Link option. When I delete a pictures from inside the original folder (outside Dropbox) the change is reflected in the Junction folder inside Dropbox Folder, not on the server. Picked a folder with 10 pictures inside and created a junction for it inside the Dropbox folder. What I want to achieve is: sync a folder that is outside Dropbox and any changed to that folder or the files within get mirrored to the Dropbox folder and the Dropbox server. I've been reading a lot of information on this and yet I'm still unsure if its possible.
0 Comments
Leave a Reply. |