rdiff-backup

gsloop

Dabbler
Joined
Jan 23, 2019
Messages
10
Searches don't turn up anything current about how to install rdiff-backup on TrueNAS Core (13 U2, IIRC)
I'd vastly prefer to add it to the base install and not handle it in a jail.

Suggestions?
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Anything added to the "base install" could be lost on any update of TrueNAS Core. The TrueNAS products are more appliance firmware than OS distros with a NAS focus.

If you add the binary into a data pool dataset, along with it's configuration, that would survive an update.
 

gsloop

Dabbler
Joined
Jan 23, 2019
Messages
10
I'd be fine with - update kills it and I have to re-install the package. But yes, I get updates could kill it, which isn't ideal.

But, ok, lets say I have to use a jail.
Will it install without a bunch of drama in a standard jail? (Anyone with actual experience doing so?)
Will the jail have full access to the mounted ZFS volumes? (I've never messed with jails, so I have no idea.)
 
Joined
Oct 22, 2019
Messages
3,641
Will it install without a bunch of drama in a standard jail? (Anyone with actual experience doing so?)
Will the jail have full access to the mounted ZFS volumes? (I've never messed with jails, so I have no idea.)


You can use the binary package system to install and manage packages within a jail.

Code:
pkg install packagename


Whatever dependencies it needs it will automatically pull and install.

I'd recommend a Basejail over a Clone jail.

As far as access to the data, you assign mountpoints in the jail's configuration. Then simply use those directories (within the jail), and you'll have seamless access to those files and folders like normal. Keep in mind the jail will have its own unique IP address, so clients need to connect with that IP address; not your TrueNAS IP address.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Given that this is the first time that I've heard of rdiff-backup, what exactly is it? Shell script? Executable? Other script?

You can install code in a jail and still run it from the base OS in many cases. Or just put it in its own dataset.
 
Joined
Oct 22, 2019
Messages
3,641
what exactly is it? Shell script? Executable? Other script?
Reading about it, seems like a Python version of rsync.

Not sure why rsync won't suffice?
 
Top