- create repo
borg init -e repokey /path/to/repo
- create archive
borg create /path/to/repo::archive /path/to/backup
- or over ssh
borg create ssh://user@host/path/to/repo::archive /path/to/backup
my procedure
borg init -e repokey /media/backup/borg-hostname
borg create /media/backup/borg-hostname::$(date +%Y%m%d) ${HOME}
borg list /media/backup/borg-hostname
sudo borg mount /media/backup/borg-hostname::$(date +%Y%m%d) /media/recover
sudo umount /media/recover
rclone sync /media/backup <cloud_storage>:<bucket>