You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

84 lines
2.5 KiB

  1. #!/bin/bash
  2. # Create a copy of this config.sh, customise it and place it in the
  3. # working directory of the packing and upload scripts.
  4. ####################
  5. # CHUNKER SETTINGS #
  6. ####################
  7. # start a new chunk when the current chunk is at least this large
  8. MEGABYTES_PER_CHUNK=$((1024*25))
  9. ###################
  10. # UPLOAD METADATA #
  11. ###################
  12. # your Archive.org S3 keys
  13. IA_AUTH="ACCESS_KEY:SECRET"
  14. # the name of the collection to add the uploads to
  15. IA_COLLECTION="archiveteam_TODO"
  16. # the title of the items (" ${item_timestamp}" will be appended)
  17. IA_ITEM_TITLE="Archive Team TODO:"
  18. # the prefix of the item name ("${item_timestamp}" is appended)
  19. IA_ITEM_PREFIX="archiveteam_todo_"
  20. # the prefix of the megawarc filename ("${item_timestamp}" is appended)
  21. FILE_PREFIX="todo_"
  22. # the date field for the item
  23. IA_ITEM_DATE=$( date +"%Y-%m" )
  24. # offload items to another rsync storage instead of uploading to IA
  25. OFFLOAD_TARGET="rsync://somewhere-far-away:portnum/module-name/directory/"
  26. ###############
  27. # DIRECTORIES #
  28. ###############
  29. # Put your directories on one or two filesystems (see README).
  30. FS1_BASE_DIR="/archiveteam/ssd/project"
  31. FS2_BASE_DIR="/archiveteam/disk/project"
  32. ## THESE DIRECTORIES ON FILESYSTEM 1: for warcs
  33. # the rsync upload directory
  34. # (the chunker will package the .warc.gz files in this directory)
  35. INCOMING_UPLOADS_DIR="${FS1_BASE_DIR}/incoming-uploads"
  36. # the chunker working directory
  37. # (this directory will hold the current in-progress chunk)
  38. CHUNKER_WORKING_DIR="${FS1_BASE_DIR}/chunker-work"
  39. # the chunker output directory / the packer queue
  40. # (this directory will hold the completed chunks)
  41. PACKING_QUEUE_DIR="${FS1_BASE_DIR}/packing-queue"
  42. # the packer working directory - warc side
  43. # (this directory will hold the current chunk)
  44. PACKER_WORKING_CHUNKS_DIR="${FS1_BASE_DIR}/packer-work-in"
  45. ## THESE DIRECTORIES ON FILESYSTEM 2: for megawarcs
  46. # the packer working directory - megawarc side
  47. # (this directory will hold the current megawarc)
  48. PACKER_WORKING_MEGAWARC_DIR="${FS2_BASE_DIR}/packer-work-out"
  49. # the packer output directory / the upload queue
  50. # (this directory will hold the completed megawarcs)
  51. UPLOAD_QUEUE_DIR="${FS2_BASE_DIR}/upload-queue"
  52. # the uploader working directory
  53. # (this directory will hold the current megawarc)
  54. UPLOADER_WORKING_DIR="${FS2_BASE_DIR}/uploader-work"
  55. # the final destination for uploaded megawarcs
  56. # leave this empty to remove megawarcs after uploading
  57. COMPLETED_DIR="${FS2_BASE_DIR}/uploaded"
  58. # remove this
  59. echo "config.sh not customised."
  60. exit 1