External rsync backup for GhostBsd(how to)

Post your general questions or comments about GhostBSD here!
Post Reply
Morty
Posts: 27
Joined: Mon Sep 20, 2021 8:22 am

External rsync backup for GhostBsd(how to)

Post by Morty »

For my Linux distro's (ext4), i enter this in command line:

sudo rsync -aAXv --delete --dry-run --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* --exclude=/run/* --exclude=/mnt/* --exclude=/media/* --exclude ="swapfile" --exclude="lost+found" --exclude=".cache" --exclude="Downloads" --exclude=".encryptfs" /source /destination device

included 'dry-run' in example. Most of the 'exclude=' files are attributed to the kernel at boot and don't need to be backed up,from what i understand. It works great. What i need to know is what files attributed to the kernel at boot in the zfs (i believe it was zfs on install or file system that starts with 'z') for GhostBsd that need to be '--exclude=' for GhostBsd file system.i'm sure it will be different for GhostBsd than Linux.Thanks!
hans.wolters
Posts: 6
Joined: Fri Oct 28, 2022 9:41 am

Re: External rsync backup for GhostBsd(how to)

Post by hans.wolters »

When you want snapshots like that then rsnapshot might be the tool to look for. You can also use zfs snapshots and send them to a different location.
Post Reply