srakads.blogg.se

Sync folders in xp
Sync folders in xp











sync folders in xp
  1. #SYNC FOLDERS IN XP HOW TO#
  2. #SYNC FOLDERS IN XP WINDOWS 10#
  3. #SYNC FOLDERS IN XP SOFTWARE#
  4. #SYNC FOLDERS IN XP CODE#

To do this we will use the Task Scheduler program that comes with Windows, this process is based on Windows 10 but is almost identical on other Windows platforms. But we want to go a step further than that and have Windows run the process automatically so you do not need to worry. You are now ready to sync any folders without having to copy, paste and delete repeatedly by just double clicking on the executable. The path is the path to the python script.įor more options and help see the below link: '-w' is an option which tells the computer to not display a command prompt every time it runs the script. '-F' is an option which tells pyinstaller to only generate one executable and not a series of folders that would also have to be distributed. 'pyinstaller' tell the computer to use the module pyinstaller which we downloaded earlier To explain what is going on in the BOLD text which was typed in the command prompt: This file can be distributed as is to anyone and they can then run a sync without having to have python installed on the computer. In the dist folder is now a file called DirectorySync.exe, running this will perform the sync in the background. In the folder location of your python script this creates a series of folders: _pycache_, build, dist and two other files.

sync folders in xp

Pyinstaller -F -w C:/Route_to_your_folder/DirectorySync.py Type the following replacing the folder path with the route to the DirectorySync.py script we create in the last step: To create the executable we now need to move back to the command prompt. For more options and help see the following link:

#SYNC FOLDERS IN XP CODE#

If you want to sync more than one top level folder, simply add more lines to your code with the sync() function. The way it is configured above will also sync all the folders within the top level folder too, this can be stopped if required. There are other options which can be implemented depending on your needs. Adding purge=True tells the function to delete anything in the target folder which is no longer in the source folder. The first folder is the source folder and the second is the target, the 'sync' is the telling the sync function what syncing mode to implement. The first line imports the dirsync module we installed previously. The double backslash is required in the path name as the backslash is an escape character in Python. Make sure to change the two folders above with the two folders you wish to sync. The script is nice and simple, only two lines, copy and paste the following into either IDLE (installed with Python) or notepad and save as "DirectorySync.py": The computer user had to be none the wiser. I could then customise and distribute this to the family as an executable which I could set windows to run on a regular basis in the background. Therefore with a small bit of effort, I wrote a python script which would sync the folders we all needed.

#SYNC FOLDERS IN XP SOFTWARE#

As a consequence of this, all free software tends to come with pop ups or even slowed down the PC with long sync times and big CPU usage, which was just annoying. I also did not want to pay for any software (yes I know stingy me). I also needed a way to double down on the backup by implementing a RAID like approach on two hard drives on the server PC. I have an old windows computer that I have setup acting as a server for various functions, one of which is a cheap network attached storage which acts as both a media server and backup to all my family's computer data.Īs my family all like to work locally on their PCs, we needed an easy way to backup our data regularly. Please note this only works with Windows although the process is similar on Mac and Linux. No experience with programming is necessary to complete this tutorial. Ideal for backing up work both locally, to a cloud/network server or a USB drive.

#SYNC FOLDERS IN XP HOW TO#

This instructable will show you how to keep two folders (and all folders within them) in sync so one is a direct copy of the other.













Sync folders in xp