Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

research-tools

Shared utilities across personal research repositories. Currently small: only gdrive-sync for rclone-based incremental Google Drive backups.

Install

git clone git@github.com:Gyumin5/research-tools.git ~/research-tools
echo 'export PATH="$HOME/research-tools/bin:$PATH"' >> ~/.bashrc
echo 'export UFPF_SHARED_ROOT="$HOME/research-shared"' >> ~/.bashrc   # optional
source ~/.bashrc

Tools

gdrive-sync

Incremental rclone wrapper. Each repo has its own .backup.conf (gitignored); the script reads it and syncs every entry in SYNC_MAP to Google Drive.

Usage

cd <your-repo>
gdrive-sync                    # uses ./.backup.conf
gdrive-sync --dry-run          # preview without uploading
gdrive-sync /path/to/conf      # explicit config path

Config format (see examples/ufpf.backup.conf)

REMOTE=gdrive:your-project-data

SYNC_MAP=(
    "local/relative/path|remote/subpath"
    "/absolute/path|remote/other"
)

TRANSFERS=8                        # optional, default 4
EXCLUDE=( "*.tmp" "*.log" )        # optional, applied to every sync
EXTRA_ARGS=""                      # extra flags passed to rclone

Paths on the left resolve relative to the config file's directory (or absolute). rclone sync is incremental, so re-running only uploads changed files.

Requirements

  • rclone configured with a Google Drive remote (rclone config)
  • bash 4+

Conventions

  • Large experiment artifacts (CSV results, map data, dataset caches) go to Drive, not Git LFS.
  • Drive layout: one remote root per project (gdrive:<project>-data) plus a shared one (gdrive:shared-research) for cross-project assets like maps.
  • Per-machine absolute paths stay in .backup.conf (gitignored). Commit .backup.conf.example as a template for teammates.

About

Shared utilities across research repos (gdrive-sync)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages