Commit 402fa0bf authored by Sophie Herold's avatar Sophie Herold
Browse files

meta: Release 0.4.0

parent 7f45e5fb
Pipeline #397875 passed with stage
in 8 minutes and 6 seconds
......@@ -1356,7 +1356,7 @@ dependencies = [
[[package]]
name = "pika-backup"
version = "0.4.0-rc.2"
version = "0.4.0"
dependencies = [
"arc-swap",
"ashpd",
......
[package]
name = "pika-backup"
description = "Keep your data safe"
version = "0.4.0-rc.2"
version = "0.4.0"
authors = ["Sophie Herold <sophie@hemio.de>"]
homepage = "https://apps.gnome.org/app/org.gnome.World.PikaBackup/"
repository = "https://gitlab.gnome.org/World/pika-backup"
......
......@@ -66,9 +66,10 @@
</provides>
<releases>
<release version="0.4.0-rc.2" date="2022-05-11" type="development">
<release version="0.4.0" date="2022-05-15">
<description>
<p>For this release, when doing your first backup, you have to re-enter the stored password.</p>
<p>The changes for this release include</p>
<ul>
<li>Ability to schedule regular backups.</li>
<li>Support for deleting old archives.</li>
......
......@@ -53,7 +53,7 @@ impl CommandRun<task::List> for Command<task::List> {
match self.task.limit {
task::NumArchives::First(n) => {
borg.add_options([format!("--first={}", n)]);
borg.add_options([format!("--last={}", n)]);
}
task::NumArchives::All => (),
}
......@@ -356,7 +356,7 @@ impl CommandOnlyRepo {
let borg = BorgCall::new("list")
.add_options([
"--json",
"--first=1",
"--last=1",
"--format={hostname}{username}{comment}{end}{command_line}",
])
.add_envs(vec![
......
......@@ -61,7 +61,9 @@ pub fn parse(cmd: Vec<String>) -> Parsed {
while let Some(option) = options.next() {
if matches!(option.0, CreateTerm::OptExclude) {
if let Some((CreateTerm::Value, value)) = options.next() {
if !value.ends_with(crate::REPO_MOUNT_DIR) {
if !value.ends_with(crate::REPO_MOUNT_DIR)
&& !value.ends_with(&format!(".var/app/{}/data/flatpak/", crate::app_id()))
{
if let Some(pattern) = config::Pattern::from_borg(value) {
exclude.insert(pattern);
}
......
......@@ -165,6 +165,13 @@ impl Backup {
crate::REPO_MOUNT_DIR,
))));
if ashpd::is_sandboxed() {
dirs.insert(Pattern::PathPrefix(absolute(path::Path::new(&format!(
".var/app/{}/data/flatpak/",
crate::app_id()
)))));
}
dirs
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment