4 Last update: 03 July 2005
6 Copyright (C) 2005-2009 Avuton Olrich <avuton@gmail.com>
8 Permission is granted to copy, distribute and/or modify this document
9 under the terms of the GNU Free Documentation License, Version 1.1 or
10 any later version published by the Free Software Foundation; with the
11 Invariant Sections being this .ig-section and AUTHOR, with no
12 Front-Cover Texts, and with no Back-Cover Texts.
14 A copy of the Free Documentation License is included as a file called
15 FDL in the main directory of the state-utils source package.
18 .\" --------------------------------------------------------------------
20 .\" --------------------------------------------------------------------
25 state\-save \- Program for saving the state of the Music Player Daemon (MPD)
27 state\-save [<state name>]
29 state\-save is a client for MPD which saves all available information to [<state name>] for later restoration.
33 This section describes the argument.
36 is not required, but if not given state will be saved to 'default'.
40 This section describes some environment variables that affect how state-save operates.
46 By default, state-save connects to localhost:6600. This can be changed either at compile-time, or by exporting the MPD_HOST and MPD_PORT environment variables.
48 To use a password with mpd, set MPD_HOST to password@host.
53 MPD_HOST='password@host' MPD_PORT='6600' state-save my_state_name
55 This doesn't save a few different things which aren't available via the MPD protocol.
57 * Any *ids such as playlistid
59 * Random, if a playlist was ordered and any part of the playlist has been previously been played through the songs that have played in the previous state will be replayed.
61 * Bash completion script doesn't yet work with spaces.
63 * May not deal well with errors. This may change in the future.
67 Avuton Olrich <avuton@gmail.com>