[GH-ISSUE #716] SCP Backup Upload #572

Open
opened 2026-02-27 02:02:24 +03:00 by kerem · 10 comments
Owner

Originally created by @UltimateByte on GitHub (Feb 25, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/716

Originally assigned to: @UltimateByte on GitHub.

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.

Originally created by @UltimateByte on GitHub (Feb 25, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/716 Originally assigned to: @UltimateByte on GitHub. 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.
Author
Owner

@UltimateByte commented on GitHub (Feb 26, 2016):

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

<!-- gh-comment-id:189246846 --> @UltimateByte commented on GitHub (Feb 26, 2016): What is the best way to do that ? I used the scp until now.
Author
Owner

@JimTR commented on GitHub (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

<!-- gh-comment-id:196953585 --> @JimTR commented on GitHub (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 <code> $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" } </code> this does also assume you have apache running and a FQDN
Author
Owner

@seancallaway commented on GitHub (Mar 17, 2016):

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

<!-- gh-comment-id:198054872 --> @seancallaway commented on GitHub (Mar 17, 2016): @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.
Author
Owner

@UltimateByte commented on GitHub (Mar 17, 2016):

Would be good to have a setting such as :

# Available modes : scp ; rsync 
mode=""
<!-- gh-comment-id:198134907 --> @UltimateByte commented on GitHub (Mar 17, 2016): Would be good to have a setting such as : ``` # Available modes : scp ; rsync mode="" ```
Author
Owner

@seancallaway commented on GitHub (Mar 17, 2016):

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

<!-- gh-comment-id:198136291 --> @seancallaway commented on GitHub (Mar 17, 2016): Agreed. Some less secure methods (FTP/FTPS) may be worthwhile, as well, as not everyone has secure transfer methods available to their storage.
Author
Owner

@UltimateByte commented on GitHub (Mar 18, 2016):

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.

<!-- gh-comment-id:198143332 --> @UltimateByte commented on GitHub (Mar 18, 2016): 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.
Author
Owner

@seancallaway commented on GitHub (Mar 18, 2016):

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.

<!-- gh-comment-id:198535483 --> @seancallaway commented on GitHub (Mar 18, 2016): > 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.
Author
Owner

@dgibbs64 commented on GitHub (Mar 18, 2016):

This feature would have to be well thought out

<!-- gh-comment-id:198578770 --> @dgibbs64 commented on GitHub (Mar 18, 2016): This feature would have to be well thought out
Author
Owner

@UltimateByte commented on GitHub (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".

<!-- gh-comment-id:198586812 --> @UltimateByte commented on GitHub (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".
Author
Owner

@MicLieg commented on GitHub (Feb 25, 2024):

link #2106

<!-- gh-comment-id:1963012044 --> @MicLieg commented on GitHub (Feb 25, 2024): link #2106
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#572
No description provided.