Skip to content

A command line program to copy files and folders according to Xml configuration files.

License

Notifications You must be signed in to change notification settings

albino98/CLI-Copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python

CLI-Copy

A command line program to copy files and folders according to Xml configuration files.

A cli version of Deploy-Helper .

The program also backs up the destination folder before copying.

Usage

  1. Clone repository or download files into a folder.

  2. Configure an xml file like following:

<xml>
	<deploys>
		<deploy name="testFile">
			<sourceFilePath>/home/folder</sourceFilePath>
			<sourceFilePath>/home/testFile.txt</sourceFilePath>
			
			<destinationPath>/home/destination</destinationPath>
			<backupPath>/home/backup</backupPath>
		</deploy>
	</deploys>
</xml>
  1. Open cmd in the program folder and run:
 python3 main.py -d <xmlFileName>

or

 py main.py -d <xmlFileName>

example:

 python3 main.py -d testFile

⚠️ Save the xml file with the same name as the deploy attribute. Example:

<deploy name="testFile">

File name: testFile.xml

About

A command line program to copy files and folders according to Xml configuration files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages