Skip to content

Commit af37119

Browse files
committed
refactor: rename project
1 parent 10848a7 commit af37119

File tree

5 files changed

+26
-28
lines changed

5 files changed

+26
-28
lines changed

Cargo.lock

+20-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
[package]
2-
name = "dockerbck"
2+
name = "awsbck"
33
version = "0.1.0"
4-
description = "Utility to backup a docker volume (or any folder) to AWS S3, once or periodically."
4+
description = "Utility to backup a folder to AWS S3, once or periodically."
55
edition = "2021"
66

7-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8-
97
[dependencies]
108
anyhow = "1"
119
aws-config = "0.54"

src/backup.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub async fn backup(params: &Params) -> Result<()> {
2929
}
3030

3131
fn compress_folder(folder: &Path) -> Result<String> {
32-
let filename = "dockerbck.tar.gz";
32+
let filename = ".awsbck.tar.gz";
3333
let tar_gz: File = File::create(filename)?;
3434
let enc = GzEncoder::new(tar_gz, Compression::default());
3535
let mut tar = tar::Builder::new(enc);

src/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ use crate::prelude::*;
1212
#[command(version, about, long_about = None)]
1313
struct Cli {
1414
/// Path to the folder to backup
15-
#[arg(value_hint = clap::ValueHint::DirPath, env = "DOCKERBCK_FOLDER")]
15+
#[arg(value_hint = clap::ValueHint::DirPath, env = "AWSBCK_FOLDER")]
1616
folder: Option<PathBuf>,
1717

1818
/// Specify a cron expression to run the backup periodically
1919
///
2020
/// If not specified, the backup will only run once
21-
#[arg(short, long, value_name = "CRON", env = "DOCKERBCK_SCHEDULE")]
21+
#[arg(short, long, value_name = "CRON", env = "AWSBCK_SCHEDULE")]
2222
schedule: Option<String>,
2323

2424
/// The AWS S3 region

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Utility to backup a docker volume (or any folder) to AWS S3, once or periodically.
1+
//! Utility to backup a folder to AWS S3, once or periodically.
22
#![warn(missing_docs)]
33
#![warn(clippy::unwrap_used)]
44
#![warn(clippy::expect_used)]

0 commit comments

Comments
 (0)