mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
Max-Days not working #218
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Carton32 on GitHub.
Hi,
I'm running my own instance with local storage on AWS EC2. I need several scripts during about two months. So I used the parameters
-H "Max-Days: 60"with curl to upload my files.After 10 days (so less than 14 days, the default value), I got an HTTP 404 error while trying to download my files. It happened a second time after about 10 days after reuploading my files.
I uploaded again my files and checked the metadata and the Maxdate is correctly set (so Max-Days is working) but my files are still being deleted before this.
I searched in the code (not a Go expert at all) in hope to find a parameters I could change to increase the delay but without success.
So I think :
@Carton32 commented on GitHub:
This file is in this folder :
So it was uploaded on 27 March but the file is already gone :
@paolafrancesca commented on GitHub:
@Carton32 sorry, it was not clear that the file were deleted: actually transfer.sh service doesn't delete any files. if they are deleted from your ec2 instances there must be something else not related to transfer.sh that deletes them
what kind of volume does the ec2 instance has? did you restart the ec2 instance at any time?
i guess the two commands you pasted were run at different time, are they?
@Carton32 commented on GitHub:
So I've found what was the problem. You are absolutely right.
I have this cronjob running each day :
#! /bin/sh flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 10d /tmp /usr/sbin/tmpwatch "$flags" 30d /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 30d "$d" fi doneI will modify it accordingly to my need.
Thank you for your help!
@paolafrancesca commented on GitHub:
@Carton32 can you paste full metadata content?
currently
MaxDownloadshas precedence onMaxDaysif set@Carton32 commented on GitHub:
What's strange is that my ec2 instance is fresh and I'm made it just to try AWS and transfer.sh. I did not install anything else than transfer.sh. So I wonder what specifically delete my files after ~10 days if it's not transfer.sh.
I ran all the commands in my last message one after the other and while writing it.
I did not restart my instance :
I don't understand this question.
EDIT: Ok. I've found some information about data being deleted from /tmp. I will check this and come back.