Thank you for being a valued client of CM First Group. If you have any technical issues or concerns, please open a ticket on support.cmfirstgroup.com, email CM First technical support at support@cmfirstgroup.com or call us on our 24/7 customer hotline at +1 (512) 623-7586.

Follow

HSyncBackUp Manual

HsyncBackUp is an Eclipse project that contains an Apache Ant script to save and restore custom files from a specific folder on your workspace project to a destination folder to back them up and then restore back to the original location.

In order to implement it you must follow these steps:

  1. Import the HsyncBackUp project to your workspace
  2. Go to Window->Preferences expand the Ant options and select Runtime. Create a new property with these values

    Name: HSyncBackUpTarget_Loc
    Value: ${workspace_loc}

  3. Open the build.properties file from the HsyncBackUp folder

  4. In the property called projectName enter the name of the project from your workspace that contains the custom files you want save.

  5. There are other properties that you can change if you need it

    • filePrefix: Defines the prefix to be used in the search, files that contain this prefix in their name will be moved to the destination folder.
    • folderPrefix: Defines the prefix to be used in the search, all the files from folders that contain this prefix in their name will be moved to the destination folder.
    • sourceFolderName: Defines the name of the folder containing the files you want to save
    • targetFolderName: Defines the name of the folder in which your files will be saved
  6. Open the External Tools Configurations and create two new Ant Build configurations with the next values:

    Name: SAVE CUSTOM FILES
    Buildfile: ${workspace_loc:/HSyncBackUp/build.xml}
    Base Directory: ${workspace_loc:/HSyncBackUp}



    Name: RESTORE CUSTOM FILES
    Buildfile: ${workspace_loc:/HSyncBackUp/build.xml}
    Base Directory: ${workspace_loc:/HSyncBackUp}

  7. For both configurations go to the Classpath tab and add the BackUp.jar file from the HsyncBackUp/src folder using the Add JARs button

  8. For the RESTORE CUSTOM FILES configuration go to the Targets tab and check the Restore target option:

  9. For the SAVE CUSTOM FILES configuration go to the Targets tab and check the Save target option:

  10. To save your files run the SAVE CUSTOM FILES configuration and to restore your files run the RESTORE CUSTOM FILES configuration.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk