I need some help. Will someone proof-read my backup script.
Summary- APU3 - FreeBSD Headless Wireless AP on 4GB SDCARD
Using NFSv3 I have /raid1 nfs share mount. I have a sub-directory /raid1/apu3-backup/ for the tar file.
So I want to back up entire system Live except for unneeded files.
I am using a crochet file as a template.
https://github.com/freebsd/crochet/blob/master/board/BeagleBone/overlay/root/copy-to-emmc.sh
I have also excluded my NFS share folder as to not backup the backup.
Does this look right? I added the date for the filename suffix.
Summary- APU3 - FreeBSD Headless Wireless AP on 4GB SDCARD
Using NFSv3 I have /raid1 nfs share mount. I have a sub-directory /raid1/apu3-backup/ for the tar file.
So I want to back up entire system Live except for unneeded files.
I am using a crochet file as a template.
https://github.com/freebsd/crochet/blob/master/board/BeagleBone/overlay/root/copy-to-emmc.sh
I have also excluded my NFS share folder as to not backup the backup.
Does this look right? I added the date for the filename suffix.
Code:
#/bin/sh
tar -c -f /raid1/apu3-backup/backup-$(date +%F).tar -C / \
--exclude usr/src \
--exclude usr/ports \
--exclude usr/obj \
--exclude 'usr/swap*' \
--exclude mnt \
--exclude .sujournal \
--exclude var/run \
--exclude dev \
--exclude raid1 \
.\