Function for archiving files.