storj / uplink

Storj network Go library
MIT License
122 stars 17 forks source link

cp --expires flag not working #88

Closed numberinn closed 2 years ago

numberinn commented 2 years ago

Hello, new to uplink and Storj, I'm trying to upload backups from a VPS as an offsite copy. Having backups involved, it would be nice to set the "expires" property for automated deletion, but I'm having some trouble setting it. OS: Debian GNU/Linux 11 (bullseye), kernel 5.10.0-11-cloud-amd64 Uplink version: 1.49.5

First of all, the documentation is confusing, as sometimes it tells to place flags after source and destination, sometimes before (uplink cp --help), sometimes in the middle, but it could well be that flags are recognized regardless of their position after the main command (cp, in this case). I tried all of the above, and the only way to have uplink upload something while using the "--expires" flag is placing it after the destination (e.g: "uplink cp /var/somefile sj://somebucket --expires 2022-03-05T23:48:55+00:00") but, although having a succesful upload, a "uplink ls -x sj://somebucket" reveals that uploaded files have a blank expiration, just as the "--expires" flag was ignored.

numberinn commented 2 years ago

Sorry, wrong repo.