View Single Post
Author Message
AmeriK
Junior Member
Join Date: Jul 2016
Location: Not here
Old 01-25-2017 , 14:12   [Linux][BZ2/FastDL] Auto bz2 + FastDl Upload
Reply With Quote #1

Hello !
For those who want, I released a small bash script to automate FastDL!
Just put it in the parent folder of the server, configure it and run it!
This may take a while (compress to .bz2, upload only .bz2 with lftp and delete .bz2 from game server)...

Configuration :
  1. NOW DEPEND ON LFTP : on Debian distributions :
    Code:
    apt-get install lftp
  2. Modify script, according to game server folders.
  3. Upload it (make it executable).
  4. Run it!
  5. Have a coffee :-) (or a tea!)
  6. Enjoy !
Configuration example :

Code:
# -- CONFIGURATION --

# FTP HostName
HOST='ftp.yourwebsite.com'

# FTP User
USER='myFTPAccount'
# User password
PASSWD='DatSecretPassword'

# / ! \ MAKE SURE MAT, MAP, MOD & SOU ARE ACCORDING TO YOUR "/gamemod/materials/", "/gamemod/maps/", "/gamemod/models/", "/gamemod/sound/" folders !!!
MAT='/home/username/server/serverfiles/gamemode/materials/'
MAP='/home/username/server/serverfiles/gamemode/maps/'
MOD='/home/username/server/serverfiles/gamemode/models/'
SOU='/home/username/server/serverfiles/gamemode/sound/'

# Location to your LOCAL game mode (tf, cs,...)
LOCAL_GM='/home/username/server/serverfiles/gamemode/'

# Location on FastDL server where you want upload (according to fastdl_url)
DISTA_GM='gamemod/'

# -- !CONFIGURATION --
You found an improvement ? MP me !

Have fun <3
Attached Files
File Type: zip fastdl.zip (866 Bytes, 412 views)
__________________
Still loading...

Last edited by AmeriK; 02-04-2017 at 13:55. Reason: New version ! (v 2.0)
AmeriK is offline