Add archiving from command line. Thanks to Louis Nyffenegger for the original patch.