NAME
bastille etcupdate – Update /etc for jail(s).

SYNOPSIS
bastille etcupdate [-fx] bootstrap RELEASE
bastille etcupdate [-dx] TARGET update RELEASE
bastille etcupdate [-x] TARGET diff|resolve

DESCRIPTION
The bastille etcupdate sub-command will bootstrap a tarball from RELEASE which can then be used to update the contents of /etc inside jails after performing an upgrade.

#ManpageMonday #BastilleBSD #FreeBSD

SYNOPSIS
bastille clone [-alx] TARGET NEW_NAME IP

The bastille clone sub-command will create an exact duplicate of the targeted jail, giving it the specified NEW_NAME and IP address.

EXAMPLES
Clone myjail to newjail:
# bastille clone myjail newjail 10.23.3.4/24

Clone myjail to newjail with DHCP (VNET only):
# bastille clone myjail newjail DHCP

Clone myjail to newjail while running, with debug mode:
# bastille clone -xl myjail newjail 10.23.3.4/24

#ManpageMonday #BastilleBSD #FreeBSD

The bastille convert sub-command will convert a thin jail to a thick jail if only the TARGET argument is given.

If a TARGET and RELEASE is specified, it will convert the jail into a custom release. The jail will remain intact, and you will have a duplicate of it to use a a release base for any new jails.

EXAMPLES
Convert myjail from thin to thick:
# bastille convert myjail

Create myrelease from myjail:
# bastille convert myjail myrelease

#ManpageMonday #BastilleBSD #FreeBSD

NAME
bastille jcp – Copy file(s)/directorie(s) from jail to jail(s).

SYNOPSIS
bastille jcp [-qx] SOURCE_JAIL JAIL_PATH DESTINATION_JAIL JAIL_PATH

DESCRIPTION
The bastille jcp sub-command will copy files and directories from a single jail to any targeted jail(s).

-q, --quiet : Suppress output.

-x, --debug : Enable debug mode.

EXAMPLES
Copy /etc/resolv.conf from myjail to yourjail:
# bastille jcp myjail /etc/resolv.conf yourjail /etc

#ManpageMonday #BastilleBSD #FreeBSD

NAME
bastille rcp – Copy file(s)/directorie(s) from jail to host.

SYNOPSIS
bastille rcp [-qx] TARGET JAIL_PATH HOST_PATH

DESCRIPTION
The bastille rcp sub-command will copy JAIL_PATH to HOST_PATH from inside TARGET.

-q, --quiet : Suppress output.

-x, --debug : Enable debug mode.

EXAMPLES
Copy /etc/resolv.conf.custom to host:
# bastille rcp myjail /etc/resolv.custom /jailstuff/etc

Copy /etc to host quietly:
# bastille rcp -q myjail /etc /jailstuff/etc

#ManpageMonday #BastilleBSD

From `man bastille-restart`:

EXAMPLES
Restart all jails, ignoring stopped jail:
> bastille restart -i all

Restart all jails, but only if boot=on:
> bastille restart -b all

Restart all jails with a 5 second delay between each one:
> bastille restart -d 5 all

#FreeBSD #BastilleBSD #ManpageMonday

NAME
bastille service – Manage services within jail(s).

SYNOPSIS
bastille service [-ax] TARGET SERVICE ARGS

DESCRIPTION
The bastille service sub-command can manage services in jails.

-a, --auto
Auto mode. Start/stop jail(s) if required.

-x, --debug
Enable debug mode.

EXAMPLES
Start nginx in myjail:
> bastille service myjail nginx start

Stop caddy in myjail:
> bastille service myjail caddy stop

#BastilleBSD #FreeBSD #ManpageMonday

> man bastille-import


If the RELEASE argument is specified, Bastille will import the jail using that release.

**EXAMPLES**

Import myjail_DATE.txz:
> bastille import myjail_DATE.txz

Import myjail_DATE.gz under 15.0-RELEASE:
> bastille import myjail_DATE.txz 15.0-RELEASE

Import myjail_DATE.gz under 15.0-RELEASE from non-default location:
> bastille import /my/custom/folder/myjail_DATE.txz 15.0-RELEASE

#FreeBSD #BastilleBSD #ManpageMonday

It's #ManpageMonday so we're sharing snippets from the man pages. To read more, see `man bastille-clone`.

EXAMPLES
Clone myjail to newjail:
> bastille clone myjail newjail 10.23.3.4/24

Clone myjail to newjail with DHCP (VNET only):
> bastille clone myjail newjail DHCP

Clone myjail to newjail while running, with debug mode:
> bastille clone -xl myjail newjail 10.23.3.4/24

#FreeBSD #BastilleBSD

It is #ManpageMonday so we're sharing snippets from man pages. To dig deeper, see `man bastille-bootstrap`.

EXAMPLES
Bootstrap 15.0-RELEASE:
> bastille bootstrap 15.0-RELEASE

Bootstrap official BastilleBSD templates:
> bastille bootstrap https://github.com/BastilleBSD/templates

Bootstrap 15.0-RELEASE using PkgBase:
> bastille bootstrap -p 15.0-RELEASE

Bootstrap 15.0-RELEASE using i386 as the arch:
> bastille bootstrap 15.0-RELEASE --i386

#FreeBSD #BastilleBSD

GitHub - BastilleBSD/templates: Consolidated repository of BastilleBSD automation templates

Consolidated repository of BastilleBSD automation templates - BastilleBSD/templates

GitHub