Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tabacco
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai3
tools
tabacco
Commits
c335bf2c
Commit
c335bf2c
authored
Jun 23, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use backup --force with --stdin
Avoids an expensive lookup of the previous snapshot.
parent
6bcbc560
Pipeline
#3568
passed with stages
in 2 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
repository_restic.go
repository_restic.go
+2
-1
No files found.
repository_restic.go
View file @
c335bf2c
...
@@ -209,7 +209,8 @@ func datasetStdinPath(ds *Dataset) string {
...
@@ -209,7 +209,8 @@ func datasetStdinPath(ds *Dataset) string {
func
(
r
*
resticRepository
)
BackupStreamCmd
(
backup
*
Backup
,
ds
*
Dataset
)
string
{
func
(
r
*
resticRepository
)
BackupStreamCmd
(
backup
*
Backup
,
ds
*
Dataset
)
string
{
fakePath
:=
datasetStdinPath
(
ds
)
fakePath
:=
datasetStdinPath
(
ds
)
return
fmt
.
Sprintf
(
return
fmt
.
Sprintf
(
"%s backup --no-cache %s --stdin --stdin-filename %s"
,
// The --force prevents restic from trying to find a previous snapshot.
"%s backup --no-cache %s --force --stdin --stdin-filename %s"
,
r
.
resticCmd
(),
r
.
resticCmd
(),
resticBackupTags
(
backup
,
ds
),
resticBackupTags
(
backup
,
ds
),
fakePath
,
fakePath
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment