05-12-2018, 03:58 PM
Hm, handy to know... that a corrupt filesystem can trigger media failure like messages... who would have thunk it?
You can do it either way... either have a share on your ubuntu box that you access on your pine64 box when you run rsnapshot on it, or you have a share on the pine64 that you access from your ubuntu box and you run rsnapshot on the ubuntu box. If the pine64 is on all the time, and the ubuntu box infrequent, I'd suggest have the share on the pine64 so you can have a fstab entry on the ubuntu box that automatically mounts it if present on boot, and then have a cron task that preiodically does the snapshot.
Just keep in mind the rsnapshot is more for data files... you won't be able to make a bootable backup media that way. If that is your intent (i.e. a save point so if the card really does fail you can just image a new one and pick up from that already configured point) I just use dd (i.e. dd if=/dev/<microsd> of=/home/<username>/<image-name> bs=1MB progress=status) and pipe the output to pxz to compress it so I have a compressed backup of the entire microSD if there is a particular one I want to preserve.
You can do it either way... either have a share on your ubuntu box that you access on your pine64 box when you run rsnapshot on it, or you have a share on the pine64 that you access from your ubuntu box and you run rsnapshot on the ubuntu box. If the pine64 is on all the time, and the ubuntu box infrequent, I'd suggest have the share on the pine64 so you can have a fstab entry on the ubuntu box that automatically mounts it if present on boot, and then have a cron task that preiodically does the snapshot.
Just keep in mind the rsnapshot is more for data files... you won't be able to make a bootable backup media that way. If that is your intent (i.e. a save point so if the card really does fail you can just image a new one and pick up from that already configured point) I just use dd (i.e. dd if=/dev/<microsd> of=/home/<username>/<image-name> bs=1MB progress=status) and pipe the output to pxz to compress it so I have a compressed backup of the entire microSD if there is a particular one I want to preserve.