2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 06:46:34 +00:00

s3 migrate layout: Rename key files last

This commit is contained in:
Alexander Neumann 2017-07-02 10:47:20 +02:00
parent c54c632ca1
commit 2bcd3a3acc

View File

@ -67,9 +67,9 @@ func (m *S3Layout) Apply(ctx context.Context, repo restic.Repository) error {
be.Layout = oldLayout
for _, t := range []restic.FileType{
restic.KeyFile,
restic.SnapshotFile,
restic.DataFile,
restic.KeyFile,
restic.LockFile,
} {
err := m.moveFiles(ctx, be, newLayout, t)