osssync

module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0

README

Introduction

oss-sync is a tool to sync local files to aliyun.com OSS.

Configuration

[[Settings]]
Name = "setting name"
Local = "local folders to sync"
IgnoreHiddenFiles = true # ignore local hidden files
Endpoint = "oss-cn-zhangjiakou.aliyuncs.com" # oss endpoint
Bucket = "gperf" # oss bucket name
Prefix = "sync" # oss bucket storage file prefix
AccessKeyID = "oss access key id"
AccessKeySecret = "oss access key secret"
Delete = false # delete oss files if local file deleted

for linux

  • ~/.config/org.musicpeace.osssync/config.toml
  • /etc/xdg/org.musicpeace.osssync/config.toml
  • /etc/org.musicpeace.osssync/config.toml

for Mac

~/Library/Preferences/org.musicpeace.osssync/config.toml

for Windows

%LOCALAPPDATA%/org.musicpeace.osssync/Config/config.toml

Log

for linux

~/.local/share/org.musicpeace.osssync/app.log

for Mac

~/Library/Logs/org.musicpeace.osssync/app.log

for Windows

%LOCALAPPDATA%/org.musicpeace.osssync/Logs/log.log

Install

for CLI

make cli
./dist/osssync-cli sync

for GUI

make darwin
open ./dist/osssync.app

# Make
```bash
make bundle

Directories

Path Synopsis
cmd
app
cli
internal
app
cli
pkg
log
watcher
Package watcher implements recursive folder monitoring by wrapping the excellent fsnotify library
Package watcher implements recursive folder monitoring by wrapping the excellent fsnotify library

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL