Create payloads (fylr backup)
This page describes the process of creating a local backup of JSON payloads from a source instance
fylr backup \
--server '<source-url>/api/v1/' \
--login 'root' \
--password '<cleartext>' \
--dir '<instance folder>/' \
--compression 9 \
--purgeParameters
Usage: fylr backup [flags]
Backup ez5 or FYLR via API
Flags:
-h, --help Show context-sensitive help.
-v, --verbose Set to true, to show additional info.
-n, --log-network Set to true, to log all network traffic.
--server=STRING Source url (overwrites URL of source instance from config)
-l, --login=STRING If --server is set, use as login. Make sure to use the system root user to connect if used together with --purge.
-p, --password=STRING If --server is set, use as password
--client-id="" If --server is set, use as OAUTH2 client ID
--client-secret="" If --server is set, use as OAUTH2 client secret
--client-token-url="" If --server is set, use as OAUTH2 token url
--insecure Set to true, to not verify the server's certificate chain and host name
--log=STRING Set output to logfile
--purge For backup: set to true, to purge the target directory. For restore: set to true, to purge the target and copy the datamodel. The current password of the user used for the login will be set for the system root user.
--continue Set to true, to continue.
--verify If set, verify payloads of an existing backup (same what --continue does at the beginning).
--chunk-size=100 chunk size for fetching/pushing data.
--include-events="" Comma separated list of event types. Use "-" to skip backup/restoring of events. Empty string will backup/restore all known event types.
--max-parallel=1 Maximum numbers of parallel workers. 0 uses the number of available CPUs. This creates more load on the source / target system. Defaults to "1" (only one parallel process).
-d, --dir=STRING Target directory.
--compression=0 0: no compression, 1: speed, 9: best.
--all-versions Set to true, to request all versions of an object.
--include="" Filter regexp to include objecttypes.
--maximum-count=0 Limit records. Set to 0 for unlimited.
--retry-max-count=10 Number of retries for failed requests with network problems.
--retry-sleep-between=30 Wait time in seconds between retries for failed requests.
--pretty Output pretty JSON.--dir
--dir--server
--server--login
--login--password
--password--purge
--purge--continue
--continue--chunk-size
--chunk-size--max-count
--max-count--max-parallel
--max-parallel--compression
--compression--all-versions
--all-versions--include
--include--include-events
--include-events--retry-max-count
--retry-max-count--retry-sleep-between
--retry-sleep-between--client-id
--client-id--client-secret
--client-secret--client-token-url
--client-token-url--insecure
--insecure--verbose
--verbose--log-network
--log-network--log
--log--pretty
--prettyLast updated