1.5 KiB
1.5 KiB
Wasabi Golang util usage guide
Features of this util are
- To upload data files on to the wasabi cloud.
- Purge data which is older then defined time line.
Now lets talk about the usage.
-
You would need to place
configs.toml
insideconfigs
directory. -
Place
wasabi-util-upload
binary on root. -
Run following command to upload files on wasabi
- $./wasabi-util-upload --fileName file_name.sql --path /home/data upload
Note:- Here
upload
is command, --fileName is name of data file and --path is location of this data file -
Run following command to initiate purging process on wasabi
- $./wasabi-util-upload purge
Note:-
purge
is command, for more details on toml configs please review below section.
configs.toml
You will need to provide following details in configs.toml
in order for this util to work properly.
Region
=> When creating bucket on wasabi you select region and it has to be provided here.AccessID
andAccessSecert
=> These can be generated using this linkEndPoint
=> This is static depending on region i.ehttps://s3.eu-central-1.wasabisys.com
BucketName
=> Provide bucket name that you just created.PurgeHours
=> You need to provide time in hours, this is the time, before which all data files will be purged.