borg create /backup/repo::'{hostname}-{now}' /home/user

Category: Backup & Restore

borg create /backup/repo::'{hostname}-{now}' /home/user

Create a new archive of /home/user

Backs up /home/user into a new archive (a single backup run) named with the {hostname} and {now} placeholders, which borg fills in with machine name and timestamp. Quote the name so the shell does not expand the braces. Later runs only store changed chunks, so they are fast.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.