Skip to content

Quick and dirty script that does folder sync/duplication for quick, clean, & space saving backups. Cross Platform for windows/mac/linux. Uses JSON config file for storing destination & all sources + a JavaFX GUI tool for editing this JSON config file

Notifications You must be signed in to change notification settings

asrendon/simple-backup

Repository files navigation

Simple Backup

Use at your own risk please, do extra backups if you have any doubts. https://youtu.be/esxYBJUe38k

The EASIEST Tool for Backup/File Sync for Mac/PC/Linux:

  • great for Pro users with the technical background
  • Ideal for a quick & dirty backup solution when you don't want to waste hard drive space (all it does is simply replication)
  • Better option over OneDrive/iCloud Drive when you have large or multiple files
  • Files are NOT ENCRYPTED by default. Keep this in mind.

   

1. Create the backup config file

  • Download and run the Backup "Config.jar" file.
  • Under "Destination", Click on "Browse" to select a destination for all your backups. This can be a 2nd hard drive on your computer or a folder on a NAS
  • Under "Sources", You can either click on "Browse" or type in a directory below and click "Add" to add all the sources that you would like to replicate and back up your data from. Please Ensure that none of your sources have the same folder name. The destination will have a Folder for EACH Source with the same name.
  • When ready, click "Save" at the bottom to save the config file. 1_setupGui

 

2. Test the script

  1. For Windows Users:
  • Download the "simple_backup_win.ps1" script file.
  • Open Powershell and navigate to where the script is stored using [cd "\path\to\file"]. Copy and paste from the File Explorer Window. Just put the path in between quotation marks.
  • To run the script, execute with the config file you saved earlier. Please make sure you put the path to the config file in quotations if there are spaces.
 .\simple_backup_win.ps1 "\path\to\config\file"

2_win_script

  • IF You get an Execution error, you need to enable powershell execution.
    • Right Click the Start Button and select "Windows PowerShell (Admin)" and Run the following:
set-executionpolicy remotesigned

2_error_ps

  1. For Mac and Linux Users: Coming Soon

 

3. Set up automated backup: Coming Soon

 

Technical Overview

The JSON config file is used to store the directories where you are backing up to "destination" and the locations you are backing up from "sources". This tool is essentially for maintaining a synchronization of your files on a backup drive, much cleaner than using the OS's built in tools. Useful for when you have many different local directories you want backed up on your local machine.

  • For Windows users, the PowerShell script uses this JSON file to iterate through a RoboCopy command.
  • For Mac and Linux users, the Python script uses this JSON file to iterate through an rsync command.

 

Known Bugs

Right now, I'm just struggling to get a proper runnable JAR file on any platform. But the concept is there, I will upload a YouTube video explaining how it works soon.

About

Quick and dirty script that does folder sync/duplication for quick, clean, & space saving backups. Cross Platform for windows/mac/linux. Uses JSON config file for storing destination & all sources + a JavaFX GUI tool for editing this JSON config file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published