Skip to content

Inversion-des/FarDrive-Sync-n-Backup

Repository files navigation

FarDrive Sync&Backup

A small but powerful sync/backup tool.

⚠ Right now the project is in the early proof of concept stage.
Works only on Windows with limited functionality.

But why?

Why make another sync/backup tool when there are plenty of them around? Well, here is my story…

How to test a simple backup/restore scenario:

  1. Ensure you are on Windows.
  2. Download and unpack the latest release (8 MB) or clone the repo.
  3. In the app dir, copy app_sample.rb and rename to app.rb.
  4. Edit app.rb:
    Define @local_1, @local_2 and @storages.
    The simples storage config looks like:
@storages = {
	LocalFS: {
		dir_path: 'F:/FarDrive_storage'
	}
}
  1. Now in the main dir you can open cmd and do run -up and run -down.

I need more

Read other samples with comments in that file.

For example, if you want to exclude some dirs, look for the -update_filter command.
Replace those set_rule lines with something like this:

sync.filter.set_rule(
	dir_paths: ['app/logs', 'build/cache'],
	subdirs: true,
	exclude_files: '*'
) 

And then use run -update_filter once to save the filter for the current backup.

Community

If you have any questions/feedback — welcome to Discussions and our Subreddit.
Any issues — welcome to Issues.

If you like the concept and would like to support the development — here is my Patreon.