Skip to content

Remote Backup capabilities #10

Description

@OWarneke

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions