# Config
config:
    rclone config

config-show-path:
    rclone config file

config-show-full-content:
    # cat ~/.config/rclone/rclone.conf
    rclone config show

config-show-redacted-content:
    rclone config redacted

config-create-sftp:
    rclone config create hm-ubuntu sftp user=parallels host=10.211.55.4 port=22 key_file=~/.ssh/id_ed25519
    rclone config create hm-ubuntu sftp user=parallels host=10.211.55.4 port=22 pass='xxx'

config-create-s3:
    rclone config create hm-s3 s3 provider=AWS region=us-west-2 storage_class=STANDARD access_key_id=xxx secret_access_key=xxx
    rclone config create hm-s3 s3 provider=AWS region=us-west-2 storage_class=STANDARD env_auth=true

config-delete:
    rclone config delete hm-s3

# List
list-files-no-modification-time:
    rclone ls hm-ubuntu:/tmp/rclone-backup

list-files:
    rclone lsl hm-ubuntu:/tmp/rclone-backup

list-files-s3:
    rclone lsl hm-s3:hm-production-bucket/rclone-backup

list-files-min-age:
    rclone lsl hm-ubuntu:/tmp/rclone-backup --min-age=1w

list-files-exclude:
    rclone lsl hm-ubuntu:/tmp/rclone-backup --exclude="*.log"

list-files-include:
    rclone lsl hm-ubuntu:/tmp/rclone-backup --include="*.log"

list-files-filter:
    rclone lsl hm-ubuntu:/tmp/rclone-backup --filter="+ statistics.log" --filter="- *.log"

list-directories:
    rclone lsd hm-ubuntu:/tmp/rclone-backup

# Copy
copy:
    rclone copy --progress /tmp/rclone-backup hm-ubuntu:/tmp/rclone-backup
    rclone copy --progress /tmp/rclone-backup hm-s3:hm-production-bucket/rclone-backup
    rclone copy --progress hm-ubuntu:/tmp/rclone-backup /tmp/rclone-backup
    rclone copy --progress hm-ubuntu:/tmp/rclone-backup hm-ubuntu:/tmp/rclone-backup-big
    rclone copy --progress hm-ubuntu:/tmp/rclone-backup hm-s3:hm-production-bucket/rclone-backup

sync:
    rclone sync --progress hm-ubuntu:/tmp/rclone-backup /tmp/rclone-backup

# Mount
mount:
    rclone mount hm-s3:hm-production-bucket/rclone-backup /tmp/rclone-backup

# Server
rcd:
    rclone rcd

rcd-ui:
    rclone rcd --rc-web-gui --rc-addr=:5572 --rc-user=admin --rc-pass=passw0rd
