Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCP Backup Upload #716

Open
UltimateByte opened this issue Feb 25, 2016 · 10 comments
Open

SCP Backup Upload #716

UltimateByte opened this issue Feb 25, 2016 · 10 comments
Assignees
Labels

Comments

@UltimateByte
Copy link
Contributor

Just thought it would be great to have an FTP upload function (ftp_upload.sh ?).

Would be available for the Backup function (pretty nice to have a backup elsewhere), and FastDL function (pretty nice to be able to upload your FastDL files to another server).

PS : I'm of course OK to work on it.

@UltimateByte
Copy link
Contributor Author

What is the best way to do that ? I used the scp until now.

@UltimateByte UltimateByte self-assigned this Mar 15, 2016
@JimTR
Copy link

JimTR commented Mar 15, 2016

why not use a web app ? I have coded (in PHP) the ability to 'copy' files from one sever to another, assuming the destination has the correct privs set it looks a bit like this

$docs = "http://remotelocation.com/games/gmod/backups/";
$filename = $docs."backup.zip";
if(!@copy($filename,'new.zip'))
{
echo "file not found at the remote location";
}
else {
echo "we have done a file copy"
}

this does also assume you have apache running and a FQDN

@seancallaway
Copy link

@UltimateByte scp is generally the best way to move files from one server to another. rsync is another option. It kind of depends on where you're sending the files.

@UltimateByte
Copy link
Contributor Author

Would be good to have a setting such as :

# Available modes : scp ; rsync 
mode=""

@seancallaway
Copy link

Agreed. Some less secure methods (FTP/FTPS) may be worthwhile, as well, as not everyone has secure transfer methods available to their storage.

@UltimateByte
Copy link
Contributor Author

Yep, good idea. That will be a pain to program, mostly because i'm not used to rsync and to remote line file transfer, but challenge accepted.

BTW, i'm not sure how to implement the function. I'm opened to any idea.

Should i make a function that accepts an input, so that we can use it to within other functions, to upload stuff like logs or custom folders ?
Should we make a specific function, such as ./gameserver backup-upload ?
Should the backup be configurable by some way before, so that the backup function would upload after backing up ?

Which leads me to : Will this require a backup function update for settings ? Such as :

  • How many backups do you wanna keep ?
  • Do you want to delete the backup after uploading ?

This would probably be available for the next big LGSM update (will be retro-compatible, no worries), and require an external config file for backup. That config file could be created either while running the backup function for the first time, or in a check that woul be started while running any function.

@seancallaway
Copy link

i'm not used to rsync and to remote line file transfer, but challenge accepted.

I'm a Linux Sys Admin. Remote transfer scripts are my bread and butter. Would be happy to send you some samples.

Should we make a specific function, such as ./gameserver backup-upload ?

I would say this. If you try to make it an generic uploading script, it loses some of its usefulness, IMHO.

@dgibbs64
Copy link
Member

This feature would have to be well thought out

@UltimateByte
Copy link
Contributor Author

UltimateByte commented Mar 18, 2016

Well, we alked about that with Daniel, we will probably keep the existing backup, but make an auto-backup function, that would require to setup a config file in which you could setup an upload.
Would probably come with the next major LGSM update.
Upon first start : "A config file has been created : lgsm/auto-backup.cfg, please, edit it first".

@UltimateByte UltimateByte changed the title FTP Upload SCP Backup Upload Mar 14, 2018
@dgibbs64 dgibbs64 added type: feature request New feature or request and removed type: feature request New feature or request Type: feature labels Apr 1, 2018
@dgibbs64 dgibbs64 added this to the Backup Improvements milestone Jul 21, 2018
@dgibbs64 dgibbs64 added the type: feature request New feature or request label Jun 26, 2019
@dgibbs64 dgibbs64 removed this from the Backup Improvements milestone Mar 12, 2020
@MicLieg
Copy link
Contributor

MicLieg commented Feb 25, 2024

link #2106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants