taking backup for uploaded file

1 view
Skip to first unread message

rajasekhar bussu

unread,
Aug 17, 2009, 10:24:10 AM8/17/09
to RhinoSoft.com User Group
Hi ,
I want to take backup (or another copy) of file which is uploaded by
user in Serv-U.
please any one can provide scirpt for raising an event to take
uploaded file backup or copying another location.

--Raj

FTPServerTools

unread,
Aug 18, 2009, 6:22:50 PM8/18/09
to RhinoSoft.com User Group
For serv-u 8 or for servu 2,3,4,5 or 6? Events are not available in
servu 7.
For servu 8 this is super easy. First you should choose if you want
the event only for a single users, a domain or literally every user. I
suggest you make use of groups here tho. So lets assume you do it with
a group. I assume you already made the group. So go to the group
properties and find the event tab. Add an event of type Fle Uploaded,
give it a name under Event Name (for example FileUpped). Then choose
the action Execute Command. Choose c:\windows\system32\cmd.exe as
executable path. Choose as commandline parameters: /c copy /b /y
"$LocalPathName" c:\BackupDir

Be aware tho that this way is an example, double filenames will be
skipped. So when person 1 uploads test.txt and person 2 uploads
test.txt then there will be only one test.txt
You can use the system variables with a username for example to extend
this more to your own liking. All you need to do is think it out a bit
more on what you exactly want. I also suggest you check the help file.

00wesley00

unread,
Sep 24, 2009, 3:35:15 PM9/24/09
to RhinoSoft.com User Group
I can code small dll for you that does that. Tell me what it should do
when it has duplicate filename and when a file is deleted. And should
it keep the structure of folders?

Let me know exact specifications of what you want and will have it
done in couple of hours ;)
Reply all
Reply to author
Forward
0 new messages