===========
tklbam-init
===========

-------------------------------------------------------------------------
Initialization: prepare TKLBAM for backups
-------------------------------------------------------------------------

:Author: Liraz Siri <liraz@turnkeylinux.org>
:Date:   2013-11-05
:Manual section: 8
:Manual group: backup

SYNOPSIS
========

tklbam-init [ --force ] [ `API-KEY` ]

By default, this links TKLBAM to your Hub account. The first backup downloads
a profile to calculate system changes. On a TurnKey system the profile describes
the installation state of the server image, including packages and filesystem
paths. On a non-TurnKey system the default profile lists directories to back up.

ARGUMENTS
=========

`API-KEY`   Optional legacy Hub API key.

Without an API key, TKLBAM uses the server's Hub connection and offers to
connect it if needed.

OPTIONS
=======

--force                         Replace the Hub authorization

--force-profile=PROFILE_ID      Select a profile for the next backup
                                (e.g., "core", "turnkey-core-13.0-wheezy-amd64")

                                Without --force-profile the profile_id is 
                                automatically detected.

--force-profile=empty           Select an empty profile for the next backup.
                                Backup configurations will only be taken
                                from /etc/tklbam.

--force-profile=PATH            Path to a custom backup profile

                                Details: tklbam-internal create-profile --help


--solo                         Solo mode: disables link to Hub.

                               You'll need to --force-profile=empty or use a custom profile

                               tklbam-backup will only work with --address or --dump options

                               tklbam-restore will only work with --address or a backup extract

SECURITY WARNING
================

Providing a legacy API key as a command line argument may expose it:

* The shell may save the APIKEY to its history file (e.g., ~/.bash_history)
* The APIKEY may briefly show up in the process list

USAGE EXAMPLES
==============

::

    # initialize TKLBAM
    tklbam-init

    # initialize TKLBAM with the core profile
    tklbam-init --force-profile=core

    # initialize TKLBAM with a non-default registry path
    TKLBAM_REGISTRY=/var/lib/tklbam2 tklbam-init

    # initialize TKLBAM in solo mode with an empty profile
    tklbam-init --solo --force-profile=empty

SEE ALSO
========

``tklbam`` (8), ``tklbam-faq`` (7)
