aboutsummaryrefslogtreecommitdiff

archive

Archives files organized by type and date

Usage

archive dst

Notes

  • Check Makefile for installation
  • Check SCRIPT_PATH=archive path for paths
  • Android device usually required ARCHIVE_TIME set to no

Options

Environment variables can be defined to modify behaviour

  • script library: See documentation for options
  • ARCHIVE_DRY: Simulate a archive without actually writing
  • ARCHIVE_KEEP: Keep archived files, instead of removing them
  • ARCHIVE_TIME: Skip files newer than TIME days
  • ARCHIVE_STAT: Which stat specifier to use when sorting
  • ARCHIVE_TYPES: Which MIME base type files to include
  • ARCHIVE_RSH: Alternative remote shell program with arguments
  • ARCHIVE_HOST: Hostname of the remote archive destination
  • ARCHIVE_ATIME: Modify access time when processing files
  • ARCHIVE_ARGS: Additional arguments for rsync

Configuration

  • /src/path/ one per line
  • Lines beginning with # or empty are ignored

Per-directory

  • .archive-filter with rsync filter directives

Dependencies

Executables must be available in PATH

  • script library
  • file
  • rsync
  • rsync-escape