Skip to content

Script to backup on your WiFi network using restic on macOS

Notifications You must be signed in to change notification settings

hazcod/restimac.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

restimac.sh

Script to backup your home directory using restic on macOS, but only when you're connected to your specific WiFi network. This script will also ignore TimeMachine directory exclusions. Use always for SSID if you want to always trigger a backup.

Usage

restic init --repo sftp://server/Volumes/Backup/laptop`
echo 'password-from-above' > backup.pass` && chmod 600 backup.pass
./restimac.sh MY-WIFI sftp:@server:/Volumes/Backup/laptop/restic backup.pass

About

Script to backup on your WiFi network using restic on macOS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages