Restarting a server and uploading files to the VDS

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
biggsy2012
A semi-regular
A semi-regular
Posts: 16
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Dec 16, 2009 9:30 am

Restarting a server and uploading files to the VDS

Post by biggsy2012 »

Ok, so i have a dedi box and i was wondering if i can "restart" a server without having to put it back up, like somthing in command or somthing>?

also how do i setup/use FTP from Remote desktop if i have a file on my computer???


Thanks for help in advance
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Help please

Post by Edge100x »

biggsy2012 wrote:Ok, so i have a dedi box and i was wondering if i can "restart" a server without having to put it back up, like somthing in command or somthing>?
In order to fully restart a server, typically you would have to shut it down (either through a command like "rcon quit" for HL1/HL2 servers or by closing the application by hand) and then start it back up through the command line. To make the startup automatic, though, you could wrap the server in a looping batch file or script, or you could turn it into a system service that is set to restart automatically (with a program like FireDaemon).
also how do i setup/use FTP from Remote desktop if i have a file on my computer???
I would recommend using remote desktop itself to transfer files, if you're the only one doing it -- before you connect, go into the RD options and click the "Local Resources" page, select "More..", and check the box for "Drives", and then your local hard drive will show up as a drive on the remote machine and it will allow you to even copy/paste your files there.

If you would prefer FTP, I'd recommend using installing FileZilla: http://wiki.filezilla-project.org/FileZilla_FTP_Server. It is a free, open-source daemon.
biggsy2012
A semi-regular
A semi-regular
Posts: 16
Joined: Wed Dec 16, 2009 9:30 am

Re: Help please

Post by biggsy2012 »

but like whats the FTP info? my servers is on 216.52.143.111:27015
(plox connect if u want were having fun)
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Help please

Post by Edge100x »

biggsy2012 wrote:but like whats the FTP info? my servers is on 216.52.143.111:27015
(plox connect if u want were having fun)
If you install the FileZilla FTP server (the directions are at the link I gave), you'll be able to connect through FTP to your IP of 216.52.143.111, using the login information you set it up with.

As I said, though, I'd recommend just using remote desktop. That'd be one less hole you'd have to punch in your server's security.
biggsy2012
A semi-regular
A semi-regular
Posts: 16
Joined: Wed Dec 16, 2009 9:30 am

Re: Help please

Post by biggsy2012 »

sorry, howd i add it to the server in the first place?
biggsy2012
A semi-regular
A semi-regular
Posts: 16
Joined: Wed Dec 16, 2009 9:30 am

Re: Help please

Post by biggsy2012 »

how do i use RD, i cant jsut drag files can i?
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Help please

Post by Edge100x »

biggsy2012 wrote:how do i use RD, i cant jsut drag files can i?
You can copy and paste, or you can copy just as you would between drives on your home computer, since your personal hard drive will show up in Windows explorer while you're connected. Here's some more information about this:
I would recommend using remote desktop itself to transfer files, if you're the only one doing it -- before you connect, go into the RD options and click the "Local Resources" page, select "More..", and check the box for "Drives", and then your local hard drive will show up as a drive on the remote machine and it will allow you to even copy/paste your files there.
biggsy2012
A semi-regular
A semi-regular
Posts: 16
Joined: Wed Dec 16, 2009 9:30 am

Re: Restarting a server and uploading files to the VDS

Post by biggsy2012 »

Ok, whare would/could i run the scrim to put the server backup automaticly?
Thanks
biggsy2012
A semi-regular
A semi-regular
Posts: 16
Joined: Wed Dec 16, 2009 9:30 am

Re: Restarting a server and uploading files to the VDS

Post by biggsy2012 »

also, i run a shortcut which is

"%windir%\system32\cmd.exe /c start /high /d"c:\game installs\sourcebase" "Game server" "c:\game installs\sourcebase\srcds.exe" -game cstrike -tickrate 100 -nocrashdialog"

which loads the box whare i have to click ok, and then it starts the server, is there a way to run it in a window?

Thanks

Toby
biggsy2012
A semi-regular
A semi-regular
Posts: 16
Joined: Wed Dec 16, 2009 9:30 am

Re: Restarting a server and uploading files to the VDS

Post by biggsy2012 »

biggsy2012 wrote:Ok, whare would/could i run the script* to put the server backup automaticly?
Thanks
ment to be script*
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Restarting a server and uploading files to the VDS

Post by Edge100x »

biggsy2012 wrote:also, i run a shortcut which is

"%windir%\system32\cmd.exe /c start /high /d"c:\game installs\sourcebase" "Game server" "c:\game installs\sourcebase\srcds.exe" -game cstrike -tickrate 100 -nocrashdialog"

which loads the box whare i have to click ok, and then it starts the server, is there a way to run it in a window?

Thanks

Toby
Yes. The second half of my tutorial here talks about the command line you would use for this: http://www.nfoservers.com/forums/viewto ... =46&t=4107
Ok, whare would/could i run the script to put the server backup automaticly?
Thanks
You could create a simple .bat file that looks like this:

Code: Select all

:start
[your server command line]
goto start
.. and then run that through the shortcut instead.

Or, better, you could use FireDaemon: http://www.firedaemon.com. Or ServerChecker: http://www.dumbclan.co.uk/forum/index.p ... topic=5784. Or, if you're feeling adventurous, srvany: http://support.microsoft.com/kb/137890
biggsy2012
A semi-regular
A semi-regular
Posts: 16
Joined: Wed Dec 16, 2009 9:30 am

Re: Restarting a server and uploading files to the VDS

Post by biggsy2012 »

You could create a simple .bat file that looks like this:

Code: Select all

:start
[your server command line]
goto start
.. and then run that through the shortcut instead.

This didnt work it just created hundreds upon hundreds of Dedicated server files over and over
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Restarting a server and uploading files to the VDS

Post by Edge100x »

biggsy2012 wrote:You could create a simple .bat file that looks like this:

Code: Select all

:start
[your server command line]
goto start
.. and then run that through the shortcut instead.

This didnt work it just created hundreds upon hundreds of Dedicated server files over and over
Ah, I'm sorry, you're right. The reason this happens is the use of "start".

To fix that, add this after the word "start" in your command line:

Code: Select all

/wait
biggsy2012
A semi-regular
A semi-regular
Posts: 16
Joined: Wed Dec 16, 2009 9:30 am

Re: Restarting a server and uploading files to the VDS

Post by biggsy2012 »

:start /wait
[your server command line]
goto start


? or

:start
/wait
[your server command line]
goto start
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Restarting a server and uploading files to the VDS

Post by Edge100x »

The "/wait" needs to be put after "start" in your command line. I.e., something like "%windir%\system32\cmd.exe /c start /wait /high...
Post Reply