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

Remote Backup capabilities #10

Open
OWarneke opened this issue Jan 25, 2022 · 0 comments
Open

Remote Backup capabilities #10

OWarneke opened this issue Jan 25, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@OWarneke
Copy link
Member

In some cases it might be nesessary to create a backup directly on a remote machine for example if the remaining storage space on the PLC is to little to store the whole backup.

This could be achieved as follows.
On the PLC for local backups:
TAR_Local= tar -cpf ${StoreBackupAt}/backup-${DATE}.tar -C ${DATAPATH} $[DATA}

Adding a remote destination parameter the same backup script could be used even from a remote host.

On a PC connecting to the PLC via SSH:
REMOTE=user@192.168.1.10
TAR_Remote= ssh ${REMOTE} "tar -C ${DATAPATH} -cpf - $[DATA}" | gzip.exe > ${StoreBackupAt}/backup-${DATE}.tar

Another possibility to consider should be RSYNC and GIT to keep an archive of backups remotly continuously.

@OWarneke OWarneke added the enhancement New feature or request label Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants