
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Table of Contents
pip install edwh-restic-plugin
But probably you want to install the whole edwh
package:
pipx install edwh[plugins,omgeving]
# or
pipx install edwh[restic]
Restic is a program that automatically stores backups in a separate repository, securing them with a password and compressing them. There are multiple options for storing backups, including locally on the same host, SFTP to a remote host, and remotely to various systems and providers such as Amazon, REST, Minio, Wasabi, Alibaba Cloud, Openstack, Backblaze, Azure, Google, and rclone.
edwh restic.*
For EDWH, they use local storage, SFTP, Backblaze, S3, and Openstack.
To create a new repository, you need the local path to the folder where the backup should be stored, or an SSH connection for SFTP with a path to the folder where the backup should be stored. It's important to note that SFTP servers may close the connection if they don't receive data, which can happen if Restic is processing large amounts of unchanged data. To avoid this issue, you can use the option "ServerAliveInterval 60 & ServerAliveCountMax 240" in the SSH config.
For Backblaze, you need an account ID and Key, as well as the name of the bucket. For Openstack, you need to specify which Keystone to use, environment variables (as shown in the image), and the name of the container. Restic can also work with an OpenStack RC file.
restic init –repo /path/to/repo
restic -r sftp:user@host:/path/to/repo init
Note that SFTP servers may close the connection if they don't receive data, which can happen if
Restic is processing large amounts of unchanged data. To avoid this issue, you can use the
option ServerAliveInterval 60
and ServerAliveCountMax 240
in the SSH config.
restic -r b2:bucketname:/path/to/repo init
restic -r swift:container_name:/repo init
captain-hooks
shell scriptsexample for backing up files using no stream
restic $HOST -r $URI backup --tag files *.sh
example for backing up files using streams:
(place stream here) | restic $HOST -r $URI backup --tag stream --stdin --stdin-filename (file_name)
NOTE: put restore commands as an .sh file in a folder named captain-hooks, the folder needs to be in the same dir you run the inv restore in. SEE examples/captain-hooks for more info
variables you can use in the backup sh file
example for restoring files without using streams:
restic $HOST -r $URI restore latest --target recover_data --tag files
example for restoring files using streams:
restic $HOST -r $URI dump $SNAPSHOT --tag stream (file_name)
NOTE: put restore commands as an .sh file in a folder named captain-hooks, the folder needs to be in the same dir you run the inv restore in. See examples/captain-hooks for more info
variables you can use in the restore sh file
ew restic.backup
example: ew restic.backup -v -c=local
Possible arguments for ew restic.backup
:
datetime.localtime()
Requirements:
ew restic.restore
example: ew restic.restore -v -c=local
Possible arguments for the ew restic.restore
ew restic.snapshots
list of all backups that are made
example: ew restic.snapshots -c local
Gebruikt connectie: local
ID Time Host Tags
------------------------------------------------
71cde9e8 2023-04-05 17:49:21 ubuntu-hp stream : [hello world!]
d845dc99 2023-04-05 17:49:21 ubuntu-hp message
71cde9e8
------------------------------------------------
2 snapshots
ew restic.configure
setting up the .env file for the specified repository. Which can be OS, SFTP, B2, or local.
ew restic.run
this command sets up an eviroment with the connection choice of your choosing and runs the input command until the user types "exit".
Possible arguments for ew restic.backup
:
edwh-restic-plugin
is distributed under the terms of the MIT license.
See the license for details.
FAQs
Unknown package
We found that edwh-restic-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.