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.
-
Clone repository or download files into a folder.
-
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>
- 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
<deploy name="testFile">
File name: testFile.xml