Go to file
2024-10-16 05:44:48 +01:00
lib First Commit 2024-10-16 05:44:48 +01:00
.gitignore First Commit 2024-10-16 05:44:48 +01:00
index.js First Commit 2024-10-16 05:44:48 +01:00
package-lock.json First Commit 2024-10-16 05:44:48 +01:00
package.json First Commit 2024-10-16 05:44:48 +01:00
README.md First Commit 2024-10-16 05:44:48 +01:00
tsconfig.json First Commit 2024-10-16 05:44:48 +01:00
types.js First Commit 2024-10-16 05:44:48 +01:00

Turbo Sync

A no-nonsense file/folder synchronization application

Requirements

Turbo sync requires node js and rsync

Installation

npm install --registry="https://git.tben.me/api/packages/Moduletrace/npm/" -g turbo-sync

Usage

turbo-sync ./turbosync.config.json

Config File

The config file is a json file that contains all the information needed to run turbo-sync. Example:

[
    {
        "title": "Sync Files",
        "files": [
            "/home/user/file1.txt",
            "/home/user/file2.txt",
            {
                "path": "/home/user/file3",
                "user": "root",
                "host": "5.34.75.236",
                "ssh_key": "/home/user/.ssh/key"
            }
        ]
    },
    {
        "title": "Sync Folders",
        "options": {
            "delete": true
        },
        "folders": [
            "/home/user/folder1",
            "/home/user/folder2",
            {
                "path": "/home/user/folder3",
                "user": "user",
                "host": "5.39.67.76",
                "ssh_key": "/home/user/.ssh/key"
            }
        ]
    }
]