seafile trash

1,394 views
Skip to first unread message

Mirco Vivaldi

unread,
Jul 11, 2013, 4:16:15 AM7/11/13
to sea...@googlegroups.com
Hi,
I have a problem with seafile,
if I set the history for 7 days, I can't see any file I have deleted in the last month (for example), and this is correct...
but, if after some time I set "keep full history", I can see in the trash all file I have deleted (files deleted 2 months ago! and I can download these file)!
It seems that the files are never deleted from the server.
There is a way to correct this behaviour or a manual way to delete the file in the trash?

Thank you!

JiaQiang Xu

unread,
Jul 11, 2013, 4:20:09 AM7/11/13
to sea...@googlegroups.com
In Seafile, deleted files are not actually deleted. They are still in the history.
To completely delete the trash files,
1. Set history limit to some days
2. Run GC program on the server
In your case, you haven't run GC, so once you set the history back, you can see the files again.


2013/7/11 Mirco Vivaldi <mirco....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "seafile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seafile+u...@googlegroups.com.
To post to this group, send email to sea...@googlegroups.com.
Visit this group at http://groups.google.com/group/seafile.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mirco Vivaldi

unread,
Jul 11, 2013, 4:37:09 AM7/11/13
to sea...@googlegroups.com


Il giorno giovedì 11 luglio 2013 10:20:09 UTC+2, JiaQiang Xu ha scritto:
In Seafile, deleted files are not actually deleted. They are still in the history.
To completely delete the trash files,
1. Set history limit to some days
2. Run GC program on the server
In your case, you haven't run GC, so once you set the history back, you can see the files again.



Thank you for the super-fast answer!
it seems to work (30Gb of old files deleted!)
Do you think is it ok to put gc in crontab? (once a day)

Thank you again!

JiaQiang Xu

unread,
Jul 11, 2013, 9:44:16 AM7/11/13
to sea...@googlegroups.com



2013/7/11 Mirco Vivaldi <mirco....@gmail.com>
No, GC should only be run when Seafile server is not running.
 

Thank you again!

michif100

unread,
Jul 12, 2013, 2:11:12 PM7/12/13
to sea...@googlegroups.com
I was trying to run GC, as described at https://github.com/haiwen/seafile/wiki/Garbage-Collecting-Unused-Blocks-on-Seafile-Server
My seafile-data is at opt/seafile/seafile-data.
GC error, seafile-data does not exist. Failed to create seafile session.

I dont know how to modify your GC descriptions to fit my setup.
Seafile itself is located at: /seafile/seafile-server-1.7.0/seafile

Thanks

Angel Berrios

unread,
Jul 13, 2013, 11:23:15 AM7/13/13
to sea...@googlegroups.com
Michael:

Assuming that the user that executes the command have writing privileges to the seafile-data subdirectory:

first:

user@seafileserver:~$ export LD_LIBRARY_PATH=/seafile/seafile-server-1.7.0/seafile/lib:${LD_LIBRARY_PATH}

then:

user@seafileserver:~$ /seafile/seafile-server-1.7.0/seafile/bin/seafserv-gc -c /seafile/seafile-server-1.7.0/ccnet -d /opt/seafile/seafile-data



--
Ángel Berríos Dávila, PCL
Unix Administrator, Information & Technology
Dreyfous & Associates
O: 787-706-2700 | C: 787-202-5849 | F: 787-789-2018
aber...@dreyfous.com
www.dreyfous.com | www.eduplatform.net


image004.jpg
Reply all
Reply to author
Forward
0 new messages