Activity Stream
48,167 MEMBERS
6866 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1.     
    #1
    Member
    Website's:
    wautoposter.com

    Default [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 -"$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 [ $]; then
      SIZE
    =$(($1024))
    else
      
    SIZE=$((199 1024))
    fi
    Sname
    =`echo $0 | sed 's/.\///g'`;

    for 
    x in *
    do
      if [ 
    "$x== "$Sname]; then
        
    echo -ne;
      
    elif [ -"$x] || [ -"$x]; then
          rar a 
    -df -m0 -v"$SIZE""$x"_your-domain.com.rar "$x"
          
    echo curl -"$x"_your-domain.com.part1.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part2.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part3.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part4.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part5.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part6.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part7.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part8.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part9.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part10.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part11.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part1.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part2.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part3.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part4.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part5.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part6.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part7.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part8.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part9.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part10.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part11.rar ftp.fileserve.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part1.rar ftp.sharingmatrix.com --user FS-USERNAME:FS-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part2.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part3.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part4.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part5.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part6.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part7.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part8.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part9.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
          
    echo curl -"$x"_your-domain.com.part10.rar ftp.sharingmatrix.com --user SM-USERNAME:SM-PASSWORD >> up.sh
          
    echo curl -"$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 
    1. save the above script as upload.sh (for example)

    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
    Auto make RAR & Upload to RS,Hotfile,fileserve,sharingmatrix then delete the files
    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

  2.   Sponsored Links

  3.     
    #2
    Member
    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
    Nice start


    ----------
    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

  4.     
    #3
    Member
    Website'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 -"$x"_your-domain.com.part1.rar ftp.hotfile.com --user HF-USERNAME:HF-PASSWORD >> up.sh 
    @Snell What the need of creating another script (up.sh) and putting all the command into it to execute ?
    - 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

  5.     
    #4
    Banned
    good coding..thanks anyway.

  6.     
    #5
    Member
    Website's:
    scenedown.org
    Really good information thanks @jpavsex,@Snell and @Avek

  7.     
    #6
    Member
    Website's:
    hostproplus.com
    very useful ! thanks to all contributors !

  8.     
    #7
    Member
    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.

  9.     
    #8
    Banned
    Website's:
    orangevps.com
    Very Nice job on this....

    rey2k5 you would need rar moudle installed on the system to be able to use it..

  10.     
    #9
    Member
    Mind telling me where can I get this rar module? The only one I have is the Rapidleech one haha.

  11.     
    #10
    Member
    apt-get install rar (debian/ ubuntu)

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Will You delete your files in Filesonic/Fileserve
    By bdr111446 in forum File Host Discussion
    Replies: 13
    Last Post: 22nd Jan 2012, 09:24 PM
  2. When I should delete my old files?
    By torrenter31 in forum File Host Discussion
    Replies: 3
    Last Post: 13th Jan 2011, 10:12 AM
  3. How to get Highest downloads of the files i upload in hotfile
    By Jason_weds_Freddy in forum Webmaster Discussion
    Replies: 0
    Last Post: 4th Jan 2011, 09:46 AM
  4. [linux]Rar files, upload to RS & HF then delete the files
    By Snell in forum Tutorials and Guides
    Replies: 8
    Last Post: 21st Jun 2010, 07:01 AM

Tags for this Thread

BE SOCIAL