Results 1 to 10 of 11
-
21st Jun 2010, 11:08 AM #1OPMemberWebsite's:
wautoposter.com[linux]Rar files, upload to RS,Hotfile,fileserve,sharingmatrix then delete the files
To give credit to Snell: Avek
Also give credit to Me jpavsex
i just add some code
your-domain.com = yoursitename Or Uploader name
HF-USERNAME = hotfile.com Username
HF-PASSWORD = hotfile.com Password
FS-USERNAME = fileserve.com Generate FTP Username
FS-PASSWORD = fileserve.com Generate FTP Password
SM-USERNAME = sharingmatrix.com Generate FTP Username
SM-PASSWORD = sharingmatrix.com Generate FTP Password
You Can Add More File Hosting Site File hosting service Must have ftp Upload
Change file size for RAR
SIZE=$((199 to SIZE=$((your file size
if your file size big you can add more line your-domain.com.part11.rar 12, 13, 14, as u like
PHP Code:echo curl -T "$x"_your-domain.com.part11.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
PHP Code:#!/bin/bash
#Author: Avek
#Add all files/folders from folder to different archives
#Delete files/folders after successfully adding to rar
#Split to volume set in mb by user - 1st option eg
#./script 10 = 10mb splits Standard size = 100 mb
if [ $1 ]; then
SIZE=$(($1 * 1024))
else
SIZE=$((199 * 1024))
fi
Sname=`echo $0 | sed 's/.\///g'`;
for x in *
do
if [ "$x" == "$Sname" ]; then
echo -ne;
elif [ -d "$x" ] || [ -e "$x" ]; then
rar a -df -m0 -v"$SIZE"k "$x"_your-domain.com.rar "$x"
echo curl -T "$x"_your-domain.com.part1.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part2.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part3.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part4.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part5.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part6.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part7.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part8.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part9.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part10.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part11.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part1.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part2.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part3.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part4.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part5.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part6.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part7.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part8.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part9.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part10.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part11.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part1.rar ftp.sharingmatrix.com --user FS-USERNAME:FS-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part2.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part3.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part4.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part5.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part6.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part7.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part8.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part9.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part10.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
echo curl -T "$x"_your-domain.com.part11.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
chmod 755 up.sh
./up.sh
rm up.sh
fi
done
2. move it to file directory need to upload
3. CHMOD to 755
4. In terminal, do (i'll need superuser or root privileges)
Code:./upload.sh
jpavsex Reviewed by jpavsex on . [linux]Rar files, upload to RS,Hotfile,fileserve,sharingmatrix then delete the files To give credit to Snell: Avek Also give credit to Me jpavsex:D i just add some code your-domain.com = yoursitename Or Uploader name HF-USERNAME = hotfile.com Username HF-PASSWORD = hotfile.com Password FS-USERNAME = fileserve.com Generate FTP Username Rating: 5
-
21st Jun 2010, 11:46 AM #2Member
Have a limitation of only 11parts, what if I got 30 parts to upload ?
What the need of creating another script (up.sh) and putting all the command into it to execute ?
I think you have missed the part for deleting the files
PHP Code:rm <files>
----------
you may also add the following in one script if you want
1. megaupload
http://www.besthostingforums.com/showthread.php?t=37407
2.rapidshare
http://www.besthostingforums.com/showthread.php?t=21765
-
21st Jun 2010, 11:56 AM #3OPMemberWebsite's:
wautoposter.com@Snell Have a limitation of only 11parts, what if I got 30 parts to upload ?
- yes if your file size big you can add more line your-domain.com.part11.rar 12, 13, 14, as u like
PHP Code:echo curl -T "$x"_your-domain.com.part1.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
- yes this code auto creat new script (up.sh) after upload up.sh will remove (All function auto no need to creat manually)
@Snell I think you have missed the part for deleting the files
- Add
-
22nd Jun 2010, 04:34 AM #4Banned
good coding..thanks anyway.
-
23rd Jun 2010, 01:24 PM #5MemberWebsite's:
scenedown.orgReally good information thanks @jpavsex,@Snell and @Avek
-
30th Jun 2010, 05:49 PM #6MemberWebsite's:
hostproplus.comvery useful ! thanks to all contributors !
-
8th Jul 2010, 05:02 AM #7Member
This script is supposed to be used on home pcs running Linux yeah? I tried running it on my server and got the error rar: command not found lol.
-
8th Jul 2010, 05:03 AM #8BannedWebsite's:
orangevps.comVery Nice job on this....
rey2k5 you would need rar moudle installed on the system to be able to use it..
-
8th Jul 2010, 05:12 AM #9Member
Mind telling me where can I get this rar module? The only one I have is the Rapidleech one haha.
-
9th Jul 2010, 05:56 AM #10Member
apt-get install rar (debian/ ubuntu)
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Will You delete your files in Filesonic/Fileserve
By bdr111446 in forum File Host DiscussionReplies: 13Last Post: 22nd Jan 2012, 09:24 PM -
When I should delete my old files?
By torrenter31 in forum File Host DiscussionReplies: 3Last Post: 13th Jan 2011, 10:12 AM -
How to get Highest downloads of the files i upload in hotfile
By Jason_weds_Freddy in forum Webmaster DiscussionReplies: 0Last Post: 4th Jan 2011, 09:46 AM -
[linux]Rar files, upload to RS & HF then delete the files
By Snell in forum Tutorials and GuidesReplies: 8Last Post: 21st Jun 2010, 07:01 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...