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.

74 lines
2.6 KiB

  1. # A sample TOML config file for replicating SeaweedFS filer
  2. # Used with "weed filer.backup"
  3. # Using with "weed filer.replicate" is deprecated.
  4. # Put this file to one of the location, with descending priority
  5. # ./replication.toml
  6. # $HOME/.seaweedfs/replication.toml
  7. # /etc/seaweedfs/replication.toml
  8. [source.filer] # deprecated. Only useful with "weed filer.replicate"
  9. enabled = true
  10. grpcAddress = "localhost:18888"
  11. # all files under this directory tree are replicated.
  12. # this is not a directory on your hard drive, but on your filer.
  13. # i.e., all files with this "prefix" are sent to notification message queue.
  14. directory = "/buckets"
  15. # files from the directory separated by space are excluded from sending notifications
  16. excludeDirectories = "/buckets/tmp"
  17. [sink.local]
  18. enabled = false
  19. directory = "/data"
  20. # all replicated files are under modified time as yyyy-mm-dd directories
  21. # so each date directory contains all new and updated files.
  22. is_incremental = false
  23. [sink.filer]
  24. enabled = false
  25. grpcAddress = "localhost:18888"
  26. # all replicated files are under this directory tree
  27. # this is not a directory on your hard drive, but on your filer.
  28. # i.e., all received files will be "prefixed" to this directory.
  29. directory = "/backup"
  30. replication = ""
  31. collection = ""
  32. ttlSec = 0
  33. is_incremental = false
  34. [sink.s3]
  35. # read credentials doc at https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/sessions.html
  36. # default loads credentials from the shared credentials file (~/.aws/credentials).
  37. enabled = false
  38. aws_access_key_id = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
  39. aws_secret_access_key = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
  40. region = "us-east-2"
  41. bucket = "your_bucket_name" # an existing bucket
  42. directory = "/" # destination directory
  43. endpoint = ""
  44. is_incremental = false
  45. [sink.google_cloud_storage]
  46. # read credentials doc at https://cloud.google.com/docs/authentication/getting-started
  47. enabled = false
  48. google_application_credentials = "/path/to/x.json" # path to json credential file
  49. bucket = "your_bucket_seaweedfs" # an existing bucket
  50. directory = "/" # destination directory
  51. is_incremental = false
  52. [sink.azure]
  53. # experimental, let me know if it works
  54. enabled = false
  55. account_name = ""
  56. account_key = ""
  57. container = "mycontainer" # an existing container
  58. directory = "/" # destination directory
  59. is_incremental = false
  60. [sink.backblaze]
  61. enabled = false
  62. b2_account_id = ""
  63. b2_master_application_key = ""
  64. b2_region = ""
  65. bucket = "mybucket" # an existing bucket
  66. directory = "/" # destination directory
  67. is_incremental = false