Skip to content
Discussion options

You must be logged in to vote

Got it! The snapshot has to be entirely empty, meaning you want to backup the current empty directory.

Sadly restic is returning a generic error code 1:

repository 0d459c1f opened (version 2, compression level auto)
using parent snapshot b34053d5
load index files
[0:00] 100.00%  2 / 2 index files loaded
start scan on [./]
start backup on [./]
scan finished in 0.005s: 0 files, 0 B
Fatal: unable to save snapshot: snapshot is empty
2025/11/16 16:46:44 backup on profile 'empty': exit status 1
exit status 1

Instead of starting your backup directly on the directory you want to backup, start it a level before.
Your backup source will be the name of the directory instead of . or ./. This way, th…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vnghia
Comment options

@creativeprojects
Comment options

Answer selected by vnghia
@vnghia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants