Skip to content

C# Console application for one-way folder sync

Notifications You must be signed in to change notification settings

M1nd3r/FolderSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FolderSync

C# Console application for a one-way folder sync.

Arguments

The application takes 4 arguments, 2 mandatory (From, To) and 2 optional (SyncIntervalSeconds, LogFile ).

  • From - path of source folder
  • To - path of target folder
  • SyncIntervalSeconds - the time interval between two consecutive synchronizations. If the argument is not provided or its value is less than 1, the synchronization is one-time without repetition.
  • LogFile - a path to a file where a text log will be saved. Note that if the app is terminated forcefully, part of the logs might be lost.

Syntax

There are 4 allowed ways (orders) to pass arguments:

  • From To
  • From To SyncIntervalSeconds
  • From To LogFile
  • From To SyncIntervalSeconds LogFile

Exit

The synchronization loop can be stopped by pressing any key. The program will wait until the end of (possible) pending sync and exit afterwards.

Author

Created by Petr Sedláček in 2023.

About

C# Console application for one-way folder sync

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages