Skip to content

Commit adfde69

Browse files
committed
update prune article
1 parent c9fb1d1 commit adfde69

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

_posts/2023-07-02-using-prune-to-manage-archives.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ category: "Service Setup"
66
tags: ["linux", "backup"]
77
---
88

9-
Often times when using a tool like rsync to make backups you end up with lots of archives, and no way to keep them managed over time without a manual process. [Prune is a simple tool](https://github.com/BinaryPatrick/Prune) that lets you remove prune archives in a folder, deleting any archives not matching the specified retention options. Any file type can be an archive and prune allows you to specify which files are in scope to be pruned.
9+
Often times when using a tool like rsync to make backups you end up with lots of archives, and no way to keep them managed over time without a manual process. Prune is a simple tool that lets you remove prune archives in a folder, deleting any archives not matching the specified retention options. Any file type can be an archive and prune allows you to specify which files are in scope to be pruned.
10+
11+
[https://github.com/BinaryPatrick/Prune](https://github.com/BinaryPatrick/Prune)
1012

1113
## Install
1214

13-
To install Prune you can go to the [releases page](https://github.com/BinaryPatrick/Prune/releases) and download the latest release for your environment. If you are running Linux on x64 you can also run the following commands to download and install Prune.
15+
To install Prune you can go to the [releases page](https://github.com/BinaryPatrick/Prune/releases) and download the latest release for your environment. You can also just clone the repo and compile it yourself with the steps in the readme. If you are running Linux on x64 you can also run the following commands to download and install Prune.
16+
17+
> Don't just take my word for it. Always inspect the code that will be running on your machines, especially from an untrusted and unsigned source.
18+
{: .prompt-warning }
1419

1520
```bash
16-
GITHUB_LATEST_VERSION=$(curl -L -s -H 'Accept: application/json' https://github.com/binarypatrick/prune/releases/latest | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/')
17-
GITHUB_FILE="prune-linux-x64.tar.gz"
18-
GITHUB_URL="https://github.com/BinaryPatrick/Prune/releases/download/${GITHUB_LATEST_VERSION}/${GITHUB_FILE}"
19-
20-
curl -L -o prune-linux-x64.tar.gz $GITHUB_URL
21-
tar xzvf prune-linux-x64.tar.gz ./prune
22-
sudo install -Dm 755 prune -t /usr/local/bin
23-
rm prune prune-linux-x64.tar.gz
21+
curl -s -o prune-install-linux-x64.sh https://raw.githubusercontent.com/BinaryPatrick/Prune/main/scripts/install-linux-x64.sh
22+
chmod +x prune-install-linux-x64.sh
23+
sudo ./prune-install-linux-x64.sh
24+
rm prune-install-linux-x64.sh
2425
```
2526

2627
## Usage

assets/img/git-logo.png

6.94 KB
Loading

0 commit comments

Comments
 (0)