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.
 
 

83 lines
2.3 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. ###############
  25. # DIRECTORIES #
  26. ###############
  27. # Put your directories on one or two filesystems (see README).
  28. FS1_BASE_DIR="/archiveteam/ssd/project"
  29. FS2_BASE_DIR="/archiveteam/disk/project"
  30. ## THESE DIRECTORIES ON FILESYSTEM 1: for warcs
  31. # the rsync upload directory
  32. # (the chunker will package the .warc.gz files in this directory)
  33. INCOMING_UPLOADS_DIR="${FS1_BASE_DIR}/incoming-uploads"
  34. # the chunker working directory
  35. # (this directory will hold the current in-progress chunk)
  36. CHUNKER_WORKING_DIR="${FS1_BASE_DIR}/chunker-work"
  37. # the chunker output directory / the packer queue
  38. # (this directory will hold the completed chunks)
  39. PACKING_QUEUE_DIR="${FS1_BASE_DIR}/packing-queue"
  40. # the packer working directory - warc side
  41. # (this directory will hold the current chunk)
  42. PACKER_WORKING_CHUNKS_DIR="${FS1_BASE_DIR}/packer-work-in"
  43. ## THESE DIRECTORIES ON FILESYSTEM 2: for megawarcs
  44. # the packer working directory - megawarc side
  45. # (this directory will hold the current megawarc)
  46. PACKER_WORKING_MEGAWARC_DIR="${FS2_BASE_DIR}/packer-work-out"
  47. # the packer output directory / the upload queue
  48. # (this directory will hold the completed megawarcs)
  49. UPLOAD_QUEUE_DIR="${FS2_BASE_DIR}/upload-queue"
  50. # the uploader working directory
  51. # (this directory will hold the current megawarc)
  52. UPLOADER_WORKING_DIR="${FS2_BASE_DIR}/uploader-work"
  53. # the final destination for uploaded megawarcs
  54. # leave this empty to remove megawarcs after uploading
  55. COMPLETED_DIR="${FS2_BASE_DIR}/uploaded"
  56. # remove this
  57. echo "config.sh not customised."
  58. exit 1