replication.toml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. [sink.local]
  16. enabled = false
  17. directory = "/data"
  18. # all replicated files are under modified time as yyyy-mm-dd directories
  19. # so each date directory contains all new and updated files.
  20. is_incremental = false
  21. [sink.filer]
  22. enabled = false
  23. grpcAddress = "localhost:18888"
  24. # all replicated files are under this directory tree
  25. # this is not a directory on your hard drive, but on your filer.
  26. # i.e., all received files will be "prefixed" to this directory.
  27. directory = "/backup"
  28. replication = ""
  29. collection = ""
  30. ttlSec = 0
  31. is_incremental = false
  32. [sink.s3]
  33. # read credentials doc at https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/sessions.html
  34. # default loads credentials from the shared credentials file (~/.aws/credentials).
  35. enabled = false
  36. aws_access_key_id = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
  37. aws_secret_access_key = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
  38. region = "us-east-2"
  39. bucket = "your_bucket_name" # an existing bucket
  40. directory = "/" # destination directory
  41. endpoint = ""
  42. is_incremental = false
  43. [sink.google_cloud_storage]
  44. # read credentials doc at https://cloud.google.com/docs/authentication/getting-started
  45. enabled = false
  46. google_application_credentials = "/path/to/x.json" # path to json credential file
  47. bucket = "your_bucket_seaweedfs" # an existing bucket
  48. directory = "/" # destination directory
  49. is_incremental = false
  50. [sink.azure]
  51. # experimental, let me know if it works
  52. enabled = false
  53. account_name = ""
  54. account_key = ""
  55. container = "mycontainer" # an existing container
  56. directory = "/" # destination directory
  57. is_incremental = false
  58. [sink.backblaze]
  59. enabled = false
  60. b2_account_id = ""
  61. b2_master_application_key = ""
  62. bucket = "mybucket" # an existing bucket
  63. directory = "/" # destination directory
  64. is_incremental = false