Amflush writes all the Amanda backup files from the holding disk to tape, and updates the Amanda info database and tape list accordingly. The backups go to the holding disk when something is wrong with the tape at the time amdump is run, usually at night. When this happens, the operator must correct the problem and run amflush by hand the next day.
Amflush will look in the holding disk specified by the amanda.conf file in /etc/amanda/config for any non-empty Amanda work directories. It then prompts the operator to select the correct directory. The work directories on the holding disk are named by the date at the time amdump was run.
Amflush normally detaches from the user's tty and runs as a background process. With the -f option, amflush stays in the foreground; this is useful if amflush is run as part of another script that, for example, advances the tape in a carousel after the flush is completed.
See the amanda(8) man page for more details about Amanda.