Commands‎ > ‎

SAVEPREF

Description

Save your current preferences / switch settings to a file

Parameters

 1 (optional) filename Preference File. This is the output file.

See the syntax page and the parameter defaults page for information on setting your default parameters.

Output

SAVEPREF will save all of your current preferences back to your prefs.php file (or another file you specify)

Preferences

See the general preferences page for a list of preferences that apply to all (or most) commands.

Examples

This will change the default output format to be CSV:
fbcmd SAVEPREF -csv

This will change the default to use square picture sizes in PPICS
fbcmd SAVEPREF -ppic_size=3

This will backup all of your current preference defaults:
fbcmd SAVEPREF backup-prefs.php

To save the location of your keyfile (-key) and cached ID files such as postfile (-pfile) and mailfile (-mfile) the special keyword [datadir] will correspond to your data directory
fbcmd SAVEPREF "-key=[datadir]mykey.txt" -spf=1

This will reset all of your preferences to the FBCMD defaults
cd \your\fbcmd\data\directory
del prefs.php
fbcmd SAVEPREF

Comments