336ccdf9413a7b2e54a99e9384ce1b2d73431b41 chmalee Tue Feb 11 08:02:40 2020 -0800 Noting that archiveTracks works on a list of databases too, refs #24936 diff --git src/hg/utils/archiveTracks.sh src/hg/utils/archiveTracks.sh index a4a9abd..89a8dba 100755 --- src/hg/utils/archiveTracks.sh +++ src/hg/utils/archiveTracks.sh @@ -10,31 +10,32 @@ tables="" files="" versionName="" trackSetName="" dbList="" verbose="FALSE" checkOnly="FALSE" EXIT_STATUS=0 usage() { cat << EOF Usage: `basename $0` [-hcbtfv] archiveRoot database(s) trackArchiveName Required Positional arguments: archiveRoot The root location of the backup directory (/hive/data/inside/archive/). -database(s) A single database or double quoted list of databases to back up +database(s) A single database, a double quoted list of databases, or a file of db + names to back up trackSetName The name of this track archive set. A directory will be created in the archiveRoot location with the files or tables from the -t or -f arguments. Optional arguments (Must preceed required args): -h Display this help and exit. -t A table name or a file with a list of tables to backup. -f A list of files to back up for this track set (/gbdb/ files). -v Use a specified version string like "v1" instead of the output of 'date +%F'. -s Print verbose status along the way to stderr. -c Don't copy anything, just output what WOULD be copied Backs up a list of tables or files for a track for a single database or list of databases. Note the third required argument of what this track set is named. Exits 0 for success and 1 on failure. The heirarchy created is: