diff --git a/src/cmds/restic/.gitignore b/cmd/restic/.gitignore similarity index 100% rename from src/cmds/restic/.gitignore rename to cmd/restic/.gitignore diff --git a/src/cmds/restic/background.go b/cmd/restic/background.go similarity index 100% rename from src/cmds/restic/background.go rename to cmd/restic/background.go diff --git a/src/cmds/restic/background_linux.go b/cmd/restic/background_linux.go similarity index 100% rename from src/cmds/restic/background_linux.go rename to cmd/restic/background_linux.go diff --git a/src/cmds/restic/cleanup.go b/cmd/restic/cleanup.go similarity index 100% rename from src/cmds/restic/cleanup.go rename to cmd/restic/cleanup.go diff --git a/src/cmds/restic/cmd_autocomplete.go b/cmd/restic/cmd_autocomplete.go similarity index 100% rename from src/cmds/restic/cmd_autocomplete.go rename to cmd/restic/cmd_autocomplete.go diff --git a/src/cmds/restic/cmd_backup.go b/cmd/restic/cmd_backup.go similarity index 100% rename from src/cmds/restic/cmd_backup.go rename to cmd/restic/cmd_backup.go diff --git a/src/cmds/restic/cmd_cat.go b/cmd/restic/cmd_cat.go similarity index 100% rename from src/cmds/restic/cmd_cat.go rename to cmd/restic/cmd_cat.go diff --git a/src/cmds/restic/cmd_check.go b/cmd/restic/cmd_check.go similarity index 100% rename from src/cmds/restic/cmd_check.go rename to cmd/restic/cmd_check.go diff --git a/src/cmds/restic/cmd_dump.go b/cmd/restic/cmd_dump.go similarity index 100% rename from src/cmds/restic/cmd_dump.go rename to cmd/restic/cmd_dump.go diff --git a/src/cmds/restic/cmd_find.go b/cmd/restic/cmd_find.go similarity index 100% rename from src/cmds/restic/cmd_find.go rename to cmd/restic/cmd_find.go diff --git a/src/cmds/restic/cmd_forget.go b/cmd/restic/cmd_forget.go similarity index 100% rename from src/cmds/restic/cmd_forget.go rename to cmd/restic/cmd_forget.go diff --git a/src/cmds/restic/cmd_init.go b/cmd/restic/cmd_init.go similarity index 100% rename from src/cmds/restic/cmd_init.go rename to cmd/restic/cmd_init.go diff --git a/src/cmds/restic/cmd_key.go b/cmd/restic/cmd_key.go similarity index 100% rename from src/cmds/restic/cmd_key.go rename to cmd/restic/cmd_key.go diff --git a/src/cmds/restic/cmd_list.go b/cmd/restic/cmd_list.go similarity index 100% rename from src/cmds/restic/cmd_list.go rename to cmd/restic/cmd_list.go diff --git a/src/cmds/restic/cmd_ls.go b/cmd/restic/cmd_ls.go similarity index 100% rename from src/cmds/restic/cmd_ls.go rename to cmd/restic/cmd_ls.go diff --git a/src/cmds/restic/cmd_migrate.go b/cmd/restic/cmd_migrate.go similarity index 100% rename from src/cmds/restic/cmd_migrate.go rename to cmd/restic/cmd_migrate.go diff --git a/src/cmds/restic/cmd_mount.go b/cmd/restic/cmd_mount.go similarity index 100% rename from src/cmds/restic/cmd_mount.go rename to cmd/restic/cmd_mount.go diff --git a/src/cmds/restic/cmd_options.go b/cmd/restic/cmd_options.go similarity index 100% rename from src/cmds/restic/cmd_options.go rename to cmd/restic/cmd_options.go diff --git a/src/cmds/restic/cmd_prune.go b/cmd/restic/cmd_prune.go similarity index 100% rename from src/cmds/restic/cmd_prune.go rename to cmd/restic/cmd_prune.go diff --git a/src/cmds/restic/cmd_rebuild_index.go b/cmd/restic/cmd_rebuild_index.go similarity index 100% rename from src/cmds/restic/cmd_rebuild_index.go rename to cmd/restic/cmd_rebuild_index.go diff --git a/src/cmds/restic/cmd_restore.go b/cmd/restic/cmd_restore.go similarity index 100% rename from src/cmds/restic/cmd_restore.go rename to cmd/restic/cmd_restore.go diff --git a/src/cmds/restic/cmd_snapshots.go b/cmd/restic/cmd_snapshots.go similarity index 100% rename from src/cmds/restic/cmd_snapshots.go rename to cmd/restic/cmd_snapshots.go diff --git a/src/cmds/restic/cmd_tag.go b/cmd/restic/cmd_tag.go similarity index 100% rename from src/cmds/restic/cmd_tag.go rename to cmd/restic/cmd_tag.go diff --git a/src/cmds/restic/cmd_unlock.go b/cmd/restic/cmd_unlock.go similarity index 100% rename from src/cmds/restic/cmd_unlock.go rename to cmd/restic/cmd_unlock.go diff --git a/src/cmds/restic/cmd_version.go b/cmd/restic/cmd_version.go similarity index 100% rename from src/cmds/restic/cmd_version.go rename to cmd/restic/cmd_version.go diff --git a/src/cmds/restic/doc.go b/cmd/restic/doc.go similarity index 100% rename from src/cmds/restic/doc.go rename to cmd/restic/doc.go diff --git a/src/cmds/restic/find.go b/cmd/restic/find.go similarity index 100% rename from src/cmds/restic/find.go rename to cmd/restic/find.go diff --git a/src/cmds/restic/flags_test.go b/cmd/restic/flags_test.go similarity index 100% rename from src/cmds/restic/flags_test.go rename to cmd/restic/flags_test.go diff --git a/src/cmds/restic/format.go b/cmd/restic/format.go similarity index 100% rename from src/cmds/restic/format.go rename to cmd/restic/format.go diff --git a/src/cmds/restic/global.go b/cmd/restic/global.go similarity index 100% rename from src/cmds/restic/global.go rename to cmd/restic/global.go diff --git a/src/cmds/restic/global_debug.go b/cmd/restic/global_debug.go similarity index 100% rename from src/cmds/restic/global_debug.go rename to cmd/restic/global_debug.go diff --git a/src/cmds/restic/global_release.go b/cmd/restic/global_release.go similarity index 100% rename from src/cmds/restic/global_release.go rename to cmd/restic/global_release.go diff --git a/src/cmds/restic/integration_fuse_test.go b/cmd/restic/integration_fuse_test.go similarity index 100% rename from src/cmds/restic/integration_fuse_test.go rename to cmd/restic/integration_fuse_test.go diff --git a/src/cmds/restic/integration_helpers_test.go b/cmd/restic/integration_helpers_test.go similarity index 100% rename from src/cmds/restic/integration_helpers_test.go rename to cmd/restic/integration_helpers_test.go diff --git a/src/cmds/restic/integration_helpers_unix_test.go b/cmd/restic/integration_helpers_unix_test.go similarity index 100% rename from src/cmds/restic/integration_helpers_unix_test.go rename to cmd/restic/integration_helpers_unix_test.go diff --git a/src/cmds/restic/integration_helpers_windows_test.go b/cmd/restic/integration_helpers_windows_test.go similarity index 100% rename from src/cmds/restic/integration_helpers_windows_test.go rename to cmd/restic/integration_helpers_windows_test.go diff --git a/src/cmds/restic/integration_test.go b/cmd/restic/integration_test.go similarity index 100% rename from src/cmds/restic/integration_test.go rename to cmd/restic/integration_test.go diff --git a/src/cmds/restic/local_layout_test.go b/cmd/restic/local_layout_test.go similarity index 100% rename from src/cmds/restic/local_layout_test.go rename to cmd/restic/local_layout_test.go diff --git a/src/cmds/restic/lock.go b/cmd/restic/lock.go similarity index 100% rename from src/cmds/restic/lock.go rename to cmd/restic/lock.go diff --git a/src/cmds/restic/main.go b/cmd/restic/main.go similarity index 100% rename from src/cmds/restic/main.go rename to cmd/restic/main.go diff --git a/src/cmds/restic/table.go b/cmd/restic/table.go similarity index 100% rename from src/cmds/restic/table.go rename to cmd/restic/table.go diff --git a/src/cmds/restic/testdata/backup-data.tar.gz b/cmd/restic/testdata/backup-data.tar.gz similarity index 100% rename from src/cmds/restic/testdata/backup-data.tar.gz rename to cmd/restic/testdata/backup-data.tar.gz diff --git a/src/cmds/restic/testdata/old-index-repo.tar.gz b/cmd/restic/testdata/old-index-repo.tar.gz similarity index 100% rename from src/cmds/restic/testdata/old-index-repo.tar.gz rename to cmd/restic/testdata/old-index-repo.tar.gz diff --git a/src/cmds/restic/testdata/repo-restore-permissions-test.tar.gz b/cmd/restic/testdata/repo-restore-permissions-test.tar.gz similarity index 100% rename from src/cmds/restic/testdata/repo-restore-permissions-test.tar.gz rename to cmd/restic/testdata/repo-restore-permissions-test.tar.gz diff --git a/src/cmds/restic/testdata/repo-same-timestamps.tar.gz b/cmd/restic/testdata/repo-same-timestamps.tar.gz similarity index 100% rename from src/cmds/restic/testdata/repo-same-timestamps.tar.gz rename to cmd/restic/testdata/repo-same-timestamps.tar.gz diff --git a/src/cmds/restic/testdata/small-repo.tar.gz b/cmd/restic/testdata/small-repo.tar.gz similarity index 100% rename from src/cmds/restic/testdata/small-repo.tar.gz rename to cmd/restic/testdata/small-repo.tar.gz diff --git a/src/cmds/restic/testdata/test.hl.tar.gz b/cmd/restic/testdata/test.hl.tar.gz similarity index 100% rename from src/cmds/restic/testdata/test.hl.tar.gz rename to cmd/restic/testdata/test.hl.tar.gz diff --git a/src/restic/archiver/archive_reader.go b/internal/archiver/archive_reader.go similarity index 100% rename from src/restic/archiver/archive_reader.go rename to internal/archiver/archive_reader.go diff --git a/src/restic/archiver/archive_reader_test.go b/internal/archiver/archive_reader_test.go similarity index 100% rename from src/restic/archiver/archive_reader_test.go rename to internal/archiver/archive_reader_test.go diff --git a/src/restic/archiver/archiver.go b/internal/archiver/archiver.go similarity index 100% rename from src/restic/archiver/archiver.go rename to internal/archiver/archiver.go diff --git a/src/restic/archiver/archiver_duplication_test.go b/internal/archiver/archiver_duplication_test.go similarity index 100% rename from src/restic/archiver/archiver_duplication_test.go rename to internal/archiver/archiver_duplication_test.go diff --git a/src/restic/archiver/archiver_int_test.go b/internal/archiver/archiver_int_test.go similarity index 100% rename from src/restic/archiver/archiver_int_test.go rename to internal/archiver/archiver_int_test.go diff --git a/src/restic/archiver/archiver_test.go b/internal/archiver/archiver_test.go similarity index 100% rename from src/restic/archiver/archiver_test.go rename to internal/archiver/archiver_test.go diff --git a/src/restic/archiver/buffer_pool.go b/internal/archiver/buffer_pool.go similarity index 100% rename from src/restic/archiver/buffer_pool.go rename to internal/archiver/buffer_pool.go diff --git a/src/restic/archiver/testing.go b/internal/archiver/testing.go similarity index 100% rename from src/restic/archiver/testing.go rename to internal/archiver/testing.go diff --git a/src/restic/backend.go b/internal/backend.go similarity index 100% rename from src/restic/backend.go rename to internal/backend.go diff --git a/src/restic/backend/b2/b2.go b/internal/backend/b2/b2.go similarity index 100% rename from src/restic/backend/b2/b2.go rename to internal/backend/b2/b2.go diff --git a/src/restic/backend/b2/b2_test.go b/internal/backend/b2/b2_test.go similarity index 100% rename from src/restic/backend/b2/b2_test.go rename to internal/backend/b2/b2_test.go diff --git a/src/restic/backend/b2/config.go b/internal/backend/b2/config.go similarity index 100% rename from src/restic/backend/b2/config.go rename to internal/backend/b2/config.go diff --git a/src/restic/backend/b2/config_test.go b/internal/backend/b2/config_test.go similarity index 100% rename from src/restic/backend/b2/config_test.go rename to internal/backend/b2/config_test.go diff --git a/src/restic/backend/doc.go b/internal/backend/doc.go similarity index 100% rename from src/restic/backend/doc.go rename to internal/backend/doc.go diff --git a/src/restic/backend/http_transport.go b/internal/backend/http_transport.go similarity index 100% rename from src/restic/backend/http_transport.go rename to internal/backend/http_transport.go diff --git a/src/restic/backend/layout.go b/internal/backend/layout.go similarity index 100% rename from src/restic/backend/layout.go rename to internal/backend/layout.go diff --git a/src/restic/backend/layout_default.go b/internal/backend/layout_default.go similarity index 100% rename from src/restic/backend/layout_default.go rename to internal/backend/layout_default.go diff --git a/src/restic/backend/layout_rest.go b/internal/backend/layout_rest.go similarity index 100% rename from src/restic/backend/layout_rest.go rename to internal/backend/layout_rest.go diff --git a/src/restic/backend/layout_s3legacy.go b/internal/backend/layout_s3legacy.go similarity index 100% rename from src/restic/backend/layout_s3legacy.go rename to internal/backend/layout_s3legacy.go diff --git a/src/restic/backend/layout_test.go b/internal/backend/layout_test.go similarity index 100% rename from src/restic/backend/layout_test.go rename to internal/backend/layout_test.go diff --git a/src/restic/backend/local/config.go b/internal/backend/local/config.go similarity index 100% rename from src/restic/backend/local/config.go rename to internal/backend/local/config.go diff --git a/src/restic/backend/local/doc.go b/internal/backend/local/doc.go similarity index 100% rename from src/restic/backend/local/doc.go rename to internal/backend/local/doc.go diff --git a/src/restic/backend/local/layout_test.go b/internal/backend/local/layout_test.go similarity index 100% rename from src/restic/backend/local/layout_test.go rename to internal/backend/local/layout_test.go diff --git a/src/restic/backend/local/local.go b/internal/backend/local/local.go similarity index 100% rename from src/restic/backend/local/local.go rename to internal/backend/local/local.go diff --git a/src/restic/backend/local/local_test.go b/internal/backend/local/local_test.go similarity index 100% rename from src/restic/backend/local/local_test.go rename to internal/backend/local/local_test.go diff --git a/src/restic/backend/local/local_unix.go b/internal/backend/local/local_unix.go similarity index 100% rename from src/restic/backend/local/local_unix.go rename to internal/backend/local/local_unix.go diff --git a/src/restic/backend/local/local_windows.go b/internal/backend/local/local_windows.go similarity index 100% rename from src/restic/backend/local/local_windows.go rename to internal/backend/local/local_windows.go diff --git a/src/restic/backend/location/location.go b/internal/backend/location/location.go similarity index 100% rename from src/restic/backend/location/location.go rename to internal/backend/location/location.go diff --git a/src/restic/backend/location/location_test.go b/internal/backend/location/location_test.go similarity index 100% rename from src/restic/backend/location/location_test.go rename to internal/backend/location/location_test.go diff --git a/src/restic/backend/mem/mem_backend.go b/internal/backend/mem/mem_backend.go similarity index 100% rename from src/restic/backend/mem/mem_backend.go rename to internal/backend/mem/mem_backend.go diff --git a/src/restic/backend/mem/mem_backend_test.go b/internal/backend/mem/mem_backend_test.go similarity index 100% rename from src/restic/backend/mem/mem_backend_test.go rename to internal/backend/mem/mem_backend_test.go diff --git a/src/restic/backend/paths.go b/internal/backend/paths.go similarity index 100% rename from src/restic/backend/paths.go rename to internal/backend/paths.go diff --git a/src/restic/backend/rest/config.go b/internal/backend/rest/config.go similarity index 100% rename from src/restic/backend/rest/config.go rename to internal/backend/rest/config.go diff --git a/src/restic/backend/rest/config_test.go b/internal/backend/rest/config_test.go similarity index 100% rename from src/restic/backend/rest/config_test.go rename to internal/backend/rest/config_test.go diff --git a/src/restic/backend/rest/rest.go b/internal/backend/rest/rest.go similarity index 100% rename from src/restic/backend/rest/rest.go rename to internal/backend/rest/rest.go diff --git a/src/restic/backend/rest/rest_test.go b/internal/backend/rest/rest_test.go similarity index 100% rename from src/restic/backend/rest/rest_test.go rename to internal/backend/rest/rest_test.go diff --git a/src/restic/backend/s3/config.go b/internal/backend/s3/config.go similarity index 100% rename from src/restic/backend/s3/config.go rename to internal/backend/s3/config.go diff --git a/src/restic/backend/s3/config_test.go b/internal/backend/s3/config_test.go similarity index 100% rename from src/restic/backend/s3/config_test.go rename to internal/backend/s3/config_test.go diff --git a/src/restic/backend/s3/s3.go b/internal/backend/s3/s3.go similarity index 100% rename from src/restic/backend/s3/s3.go rename to internal/backend/s3/s3.go diff --git a/src/restic/backend/s3/s3_test.go b/internal/backend/s3/s3_test.go similarity index 100% rename from src/restic/backend/s3/s3_test.go rename to internal/backend/s3/s3_test.go diff --git a/src/restic/backend/semaphore.go b/internal/backend/semaphore.go similarity index 100% rename from src/restic/backend/semaphore.go rename to internal/backend/semaphore.go diff --git a/src/restic/backend/sftp/config.go b/internal/backend/sftp/config.go similarity index 100% rename from src/restic/backend/sftp/config.go rename to internal/backend/sftp/config.go diff --git a/src/restic/backend/sftp/config_test.go b/internal/backend/sftp/config_test.go similarity index 100% rename from src/restic/backend/sftp/config_test.go rename to internal/backend/sftp/config_test.go diff --git a/src/restic/backend/sftp/doc.go b/internal/backend/sftp/doc.go similarity index 100% rename from src/restic/backend/sftp/doc.go rename to internal/backend/sftp/doc.go diff --git a/src/restic/backend/sftp/layout_test.go b/internal/backend/sftp/layout_test.go similarity index 100% rename from src/restic/backend/sftp/layout_test.go rename to internal/backend/sftp/layout_test.go diff --git a/src/restic/backend/sftp/sftp.go b/internal/backend/sftp/sftp.go similarity index 100% rename from src/restic/backend/sftp/sftp.go rename to internal/backend/sftp/sftp.go diff --git a/src/restic/backend/sftp/sftp_test.go b/internal/backend/sftp/sftp_test.go similarity index 100% rename from src/restic/backend/sftp/sftp_test.go rename to internal/backend/sftp/sftp_test.go diff --git a/src/restic/backend/sftp/sftp_unix.go b/internal/backend/sftp/sftp_unix.go similarity index 100% rename from src/restic/backend/sftp/sftp_unix.go rename to internal/backend/sftp/sftp_unix.go diff --git a/src/restic/backend/sftp/sftp_windows.go b/internal/backend/sftp/sftp_windows.go similarity index 100% rename from src/restic/backend/sftp/sftp_windows.go rename to internal/backend/sftp/sftp_windows.go diff --git a/src/restic/backend/sftp/split.go b/internal/backend/sftp/split.go similarity index 100% rename from src/restic/backend/sftp/split.go rename to internal/backend/sftp/split.go diff --git a/src/restic/backend/sftp/split_test.go b/internal/backend/sftp/split_test.go similarity index 100% rename from src/restic/backend/sftp/split_test.go rename to internal/backend/sftp/split_test.go diff --git a/src/restic/backend/sftp/sshcmd_test.go b/internal/backend/sftp/sshcmd_test.go similarity index 100% rename from src/restic/backend/sftp/sshcmd_test.go rename to internal/backend/sftp/sshcmd_test.go diff --git a/src/restic/backend/swift/config.go b/internal/backend/swift/config.go similarity index 100% rename from src/restic/backend/swift/config.go rename to internal/backend/swift/config.go diff --git a/src/restic/backend/swift/config_test.go b/internal/backend/swift/config_test.go similarity index 100% rename from src/restic/backend/swift/config_test.go rename to internal/backend/swift/config_test.go diff --git a/src/restic/backend/swift/swift.go b/internal/backend/swift/swift.go similarity index 100% rename from src/restic/backend/swift/swift.go rename to internal/backend/swift/swift.go diff --git a/src/restic/backend/swift/swift_test.go b/internal/backend/swift/swift_test.go similarity index 100% rename from src/restic/backend/swift/swift_test.go rename to internal/backend/swift/swift_test.go diff --git a/src/restic/backend/test/benchmarks.go b/internal/backend/test/benchmarks.go similarity index 100% rename from src/restic/backend/test/benchmarks.go rename to internal/backend/test/benchmarks.go diff --git a/src/restic/backend/test/doc.go b/internal/backend/test/doc.go similarity index 100% rename from src/restic/backend/test/doc.go rename to internal/backend/test/doc.go diff --git a/src/restic/backend/test/suite.go b/internal/backend/test/suite.go similarity index 100% rename from src/restic/backend/test/suite.go rename to internal/backend/test/suite.go diff --git a/src/restic/backend/test/tests.go b/internal/backend/test/tests.go similarity index 100% rename from src/restic/backend/test/tests.go rename to internal/backend/test/tests.go diff --git a/src/restic/backend/test/tests_test.go b/internal/backend/test/tests_test.go similarity index 100% rename from src/restic/backend/test/tests_test.go rename to internal/backend/test/tests_test.go diff --git a/src/restic/backend/testdata/repo-layout-default.tar.gz b/internal/backend/testdata/repo-layout-default.tar.gz similarity index 100% rename from src/restic/backend/testdata/repo-layout-default.tar.gz rename to internal/backend/testdata/repo-layout-default.tar.gz diff --git a/src/restic/backend/testdata/repo-layout-s3legacy.tar.gz b/internal/backend/testdata/repo-layout-s3legacy.tar.gz similarity index 100% rename from src/restic/backend/testdata/repo-layout-s3legacy.tar.gz rename to internal/backend/testdata/repo-layout-s3legacy.tar.gz diff --git a/src/restic/backend/utils.go b/internal/backend/utils.go similarity index 100% rename from src/restic/backend/utils.go rename to internal/backend/utils.go diff --git a/src/restic/backend/utils_test.go b/internal/backend/utils_test.go similarity index 100% rename from src/restic/backend/utils_test.go rename to internal/backend/utils_test.go diff --git a/src/restic/backend_find.go b/internal/backend_find.go similarity index 100% rename from src/restic/backend_find.go rename to internal/backend_find.go diff --git a/src/restic/backend_find_test.go b/internal/backend_find_test.go similarity index 100% rename from src/restic/backend_find_test.go rename to internal/backend_find_test.go diff --git a/src/restic/blob.go b/internal/blob.go similarity index 100% rename from src/restic/blob.go rename to internal/blob.go diff --git a/src/restic/blob_set.go b/internal/blob_set.go similarity index 100% rename from src/restic/blob_set.go rename to internal/blob_set.go diff --git a/src/restic/blob_test.go b/internal/blob_test.go similarity index 100% rename from src/restic/blob_test.go rename to internal/blob_test.go diff --git a/src/restic/buffer.go b/internal/buffer.go similarity index 100% rename from src/restic/buffer.go rename to internal/buffer.go diff --git a/src/restic/checker/checker.go b/internal/checker/checker.go similarity index 100% rename from src/restic/checker/checker.go rename to internal/checker/checker.go diff --git a/src/restic/checker/checker_test.go b/internal/checker/checker_test.go similarity index 100% rename from src/restic/checker/checker_test.go rename to internal/checker/checker_test.go diff --git a/src/restic/checker/testdata/checker-test-repo.tar.gz b/internal/checker/testdata/checker-test-repo.tar.gz similarity index 100% rename from src/restic/checker/testdata/checker-test-repo.tar.gz rename to internal/checker/testdata/checker-test-repo.tar.gz diff --git a/src/restic/checker/testdata/duplicate-packs-in-index-test-repo.tar.gz b/internal/checker/testdata/duplicate-packs-in-index-test-repo.tar.gz similarity index 100% rename from src/restic/checker/testdata/duplicate-packs-in-index-test-repo.tar.gz rename to internal/checker/testdata/duplicate-packs-in-index-test-repo.tar.gz diff --git a/src/restic/checker/testing.go b/internal/checker/testing.go similarity index 100% rename from src/restic/checker/testing.go rename to internal/checker/testing.go diff --git a/src/restic/config.go b/internal/config.go similarity index 100% rename from src/restic/config.go rename to internal/config.go diff --git a/src/restic/config_test.go b/internal/config_test.go similarity index 100% rename from src/restic/config_test.go rename to internal/config_test.go diff --git a/src/restic/crypto/crypto.go b/internal/crypto/crypto.go similarity index 100% rename from src/restic/crypto/crypto.go rename to internal/crypto/crypto.go diff --git a/src/restic/crypto/crypto_int_test.go b/internal/crypto/crypto_int_test.go similarity index 100% rename from src/restic/crypto/crypto_int_test.go rename to internal/crypto/crypto_int_test.go diff --git a/src/restic/crypto/crypto_test.go b/internal/crypto/crypto_test.go similarity index 100% rename from src/restic/crypto/crypto_test.go rename to internal/crypto/crypto_test.go diff --git a/src/restic/crypto/doc.go b/internal/crypto/doc.go similarity index 100% rename from src/restic/crypto/doc.go rename to internal/crypto/doc.go diff --git a/src/restic/crypto/kdf.go b/internal/crypto/kdf.go similarity index 100% rename from src/restic/crypto/kdf.go rename to internal/crypto/kdf.go diff --git a/src/restic/crypto/kdf_test.go b/internal/crypto/kdf_test.go similarity index 100% rename from src/restic/crypto/kdf_test.go rename to internal/crypto/kdf_test.go diff --git a/src/restic/debug/debug.go b/internal/debug/debug.go similarity index 100% rename from src/restic/debug/debug.go rename to internal/debug/debug.go diff --git a/src/restic/debug/debug_release.go b/internal/debug/debug_release.go similarity index 100% rename from src/restic/debug/debug_release.go rename to internal/debug/debug_release.go diff --git a/src/restic/debug/doc.go b/internal/debug/doc.go similarity index 100% rename from src/restic/debug/doc.go rename to internal/debug/doc.go diff --git a/src/restic/debug/hooks.go b/internal/debug/hooks.go similarity index 100% rename from src/restic/debug/hooks.go rename to internal/debug/hooks.go diff --git a/src/restic/debug/hooks_release.go b/internal/debug/hooks_release.go similarity index 100% rename from src/restic/debug/hooks_release.go rename to internal/debug/hooks_release.go diff --git a/src/restic/debug/round_tripper_debug.go b/internal/debug/round_tripper_debug.go similarity index 100% rename from src/restic/debug/round_tripper_debug.go rename to internal/debug/round_tripper_debug.go diff --git a/src/restic/debug/round_tripper_release.go b/internal/debug/round_tripper_release.go similarity index 100% rename from src/restic/debug/round_tripper_release.go rename to internal/debug/round_tripper_release.go diff --git a/src/restic/doc.go b/internal/doc.go similarity index 100% rename from src/restic/doc.go rename to internal/doc.go diff --git a/src/restic/errors/doc.go b/internal/errors/doc.go similarity index 100% rename from src/restic/errors/doc.go rename to internal/errors/doc.go diff --git a/src/restic/errors/fatal.go b/internal/errors/fatal.go similarity index 100% rename from src/restic/errors/fatal.go rename to internal/errors/fatal.go diff --git a/src/restic/errors/wrap.go b/internal/errors/wrap.go similarity index 100% rename from src/restic/errors/wrap.go rename to internal/errors/wrap.go diff --git a/src/restic/file.go b/internal/file.go similarity index 100% rename from src/restic/file.go rename to internal/file.go diff --git a/src/restic/file_test.go b/internal/file_test.go similarity index 100% rename from src/restic/file_test.go rename to internal/file_test.go diff --git a/src/restic/filter/doc.go b/internal/filter/doc.go similarity index 100% rename from src/restic/filter/doc.go rename to internal/filter/doc.go diff --git a/src/restic/filter/filter.go b/internal/filter/filter.go similarity index 100% rename from src/restic/filter/filter.go rename to internal/filter/filter.go diff --git a/src/restic/filter/filter_test.go b/internal/filter/filter_test.go similarity index 100% rename from src/restic/filter/filter_test.go rename to internal/filter/filter_test.go diff --git a/src/restic/filter/testdata/libreoffice.txt.bz2 b/internal/filter/testdata/libreoffice.txt.bz2 similarity index 100% rename from src/restic/filter/testdata/libreoffice.txt.bz2 rename to internal/filter/testdata/libreoffice.txt.bz2 diff --git a/src/restic/find.go b/internal/find.go similarity index 100% rename from src/restic/find.go rename to internal/find.go diff --git a/src/restic/find_test.go b/internal/find_test.go similarity index 100% rename from src/restic/find_test.go rename to internal/find_test.go diff --git a/src/restic/fs/deviceid_unix.go b/internal/fs/deviceid_unix.go similarity index 100% rename from src/restic/fs/deviceid_unix.go rename to internal/fs/deviceid_unix.go diff --git a/src/restic/fs/deviceid_windows.go b/internal/fs/deviceid_windows.go similarity index 100% rename from src/restic/fs/deviceid_windows.go rename to internal/fs/deviceid_windows.go diff --git a/src/restic/fs/doc.go b/internal/fs/doc.go similarity index 100% rename from src/restic/fs/doc.go rename to internal/fs/doc.go diff --git a/src/restic/fs/file.go b/internal/fs/file.go similarity index 100% rename from src/restic/fs/file.go rename to internal/fs/file.go diff --git a/src/restic/fs/file_unix.go b/internal/fs/file_unix.go similarity index 100% rename from src/restic/fs/file_unix.go rename to internal/fs/file_unix.go diff --git a/src/restic/fs/file_windows.go b/internal/fs/file_windows.go similarity index 100% rename from src/restic/fs/file_windows.go rename to internal/fs/file_windows.go diff --git a/src/restic/fuse/blob_size_cache.go b/internal/fuse/blob_size_cache.go similarity index 100% rename from src/restic/fuse/blob_size_cache.go rename to internal/fuse/blob_size_cache.go diff --git a/src/restic/fuse/dir.go b/internal/fuse/dir.go similarity index 100% rename from src/restic/fuse/dir.go rename to internal/fuse/dir.go diff --git a/src/restic/fuse/file.go b/internal/fuse/file.go similarity index 100% rename from src/restic/fuse/file.go rename to internal/fuse/file.go diff --git a/src/restic/fuse/file_test.go b/internal/fuse/file_test.go similarity index 100% rename from src/restic/fuse/file_test.go rename to internal/fuse/file_test.go diff --git a/src/restic/fuse/link.go b/internal/fuse/link.go similarity index 100% rename from src/restic/fuse/link.go rename to internal/fuse/link.go diff --git a/src/restic/fuse/meta_dir.go b/internal/fuse/meta_dir.go similarity index 100% rename from src/restic/fuse/meta_dir.go rename to internal/fuse/meta_dir.go diff --git a/src/restic/fuse/root.go b/internal/fuse/root.go similarity index 100% rename from src/restic/fuse/root.go rename to internal/fuse/root.go diff --git a/src/restic/fuse/snapshots_dir.go b/internal/fuse/snapshots_dir.go similarity index 100% rename from src/restic/fuse/snapshots_dir.go rename to internal/fuse/snapshots_dir.go diff --git a/src/restic/hardlinks_index.go b/internal/hardlinks_index.go similarity index 100% rename from src/restic/hardlinks_index.go rename to internal/hardlinks_index.go diff --git a/src/restic/hardlinks_index_test.go b/internal/hardlinks_index_test.go similarity index 100% rename from src/restic/hardlinks_index_test.go rename to internal/hardlinks_index_test.go diff --git a/src/restic/hashing/reader.go b/internal/hashing/reader.go similarity index 100% rename from src/restic/hashing/reader.go rename to internal/hashing/reader.go diff --git a/src/restic/hashing/reader_test.go b/internal/hashing/reader_test.go similarity index 100% rename from src/restic/hashing/reader_test.go rename to internal/hashing/reader_test.go diff --git a/src/restic/hashing/writer.go b/internal/hashing/writer.go similarity index 100% rename from src/restic/hashing/writer.go rename to internal/hashing/writer.go diff --git a/src/restic/hashing/writer_test.go b/internal/hashing/writer_test.go similarity index 100% rename from src/restic/hashing/writer_test.go rename to internal/hashing/writer_test.go diff --git a/src/restic/id.go b/internal/id.go similarity index 100% rename from src/restic/id.go rename to internal/id.go diff --git a/src/restic/id_int_test.go b/internal/id_int_test.go similarity index 100% rename from src/restic/id_int_test.go rename to internal/id_int_test.go diff --git a/src/restic/id_test.go b/internal/id_test.go similarity index 100% rename from src/restic/id_test.go rename to internal/id_test.go diff --git a/src/restic/ids.go b/internal/ids.go similarity index 100% rename from src/restic/ids.go rename to internal/ids.go diff --git a/src/restic/ids_test.go b/internal/ids_test.go similarity index 100% rename from src/restic/ids_test.go rename to internal/ids_test.go diff --git a/src/restic/idset.go b/internal/idset.go similarity index 100% rename from src/restic/idset.go rename to internal/idset.go diff --git a/src/restic/idset_test.go b/internal/idset_test.go similarity index 100% rename from src/restic/idset_test.go rename to internal/idset_test.go diff --git a/src/restic/index/index.go b/internal/index/index.go similarity index 100% rename from src/restic/index/index.go rename to internal/index/index.go diff --git a/src/restic/index/index_test.go b/internal/index/index_test.go similarity index 100% rename from src/restic/index/index_test.go rename to internal/index/index_test.go diff --git a/src/restic/list/list.go b/internal/list/list.go similarity index 100% rename from src/restic/list/list.go rename to internal/list/list.go diff --git a/src/restic/lock.go b/internal/lock.go similarity index 100% rename from src/restic/lock.go rename to internal/lock.go diff --git a/src/restic/lock_test.go b/internal/lock_test.go similarity index 100% rename from src/restic/lock_test.go rename to internal/lock_test.go diff --git a/src/restic/lock_unix.go b/internal/lock_unix.go similarity index 100% rename from src/restic/lock_unix.go rename to internal/lock_unix.go diff --git a/src/restic/lock_windows.go b/internal/lock_windows.go similarity index 100% rename from src/restic/lock_windows.go rename to internal/lock_windows.go diff --git a/src/restic/migrations/doc.go b/internal/migrations/doc.go similarity index 100% rename from src/restic/migrations/doc.go rename to internal/migrations/doc.go diff --git a/src/restic/migrations/interface.go b/internal/migrations/interface.go similarity index 100% rename from src/restic/migrations/interface.go rename to internal/migrations/interface.go diff --git a/src/restic/migrations/list.go b/internal/migrations/list.go similarity index 100% rename from src/restic/migrations/list.go rename to internal/migrations/list.go diff --git a/src/restic/migrations/s3_layout.go b/internal/migrations/s3_layout.go similarity index 100% rename from src/restic/migrations/s3_layout.go rename to internal/migrations/s3_layout.go diff --git a/src/restic/mock/backend.go b/internal/mock/backend.go similarity index 100% rename from src/restic/mock/backend.go rename to internal/mock/backend.go diff --git a/src/restic/mock/repository.go b/internal/mock/repository.go similarity index 100% rename from src/restic/mock/repository.go rename to internal/mock/repository.go diff --git a/src/restic/node.go b/internal/node.go similarity index 100% rename from src/restic/node.go rename to internal/node.go diff --git a/src/restic/node_darwin.go b/internal/node_darwin.go similarity index 100% rename from src/restic/node_darwin.go rename to internal/node_darwin.go diff --git a/src/restic/node_freebsd.go b/internal/node_freebsd.go similarity index 100% rename from src/restic/node_freebsd.go rename to internal/node_freebsd.go diff --git a/src/restic/node_linux.go b/internal/node_linux.go similarity index 100% rename from src/restic/node_linux.go rename to internal/node_linux.go diff --git a/src/restic/node_openbsd.go b/internal/node_openbsd.go similarity index 100% rename from src/restic/node_openbsd.go rename to internal/node_openbsd.go diff --git a/src/restic/node_test.go b/internal/node_test.go similarity index 100% rename from src/restic/node_test.go rename to internal/node_test.go diff --git a/src/restic/node_unix.go b/internal/node_unix.go similarity index 100% rename from src/restic/node_unix.go rename to internal/node_unix.go diff --git a/src/restic/node_unix_test.go b/internal/node_unix_test.go similarity index 100% rename from src/restic/node_unix_test.go rename to internal/node_unix_test.go diff --git a/src/restic/node_windows.go b/internal/node_windows.go similarity index 100% rename from src/restic/node_windows.go rename to internal/node_windows.go diff --git a/src/restic/node_xattr.go b/internal/node_xattr.go similarity index 100% rename from src/restic/node_xattr.go rename to internal/node_xattr.go diff --git a/src/restic/options/options.go b/internal/options/options.go similarity index 100% rename from src/restic/options/options.go rename to internal/options/options.go diff --git a/src/restic/options/options_test.go b/internal/options/options_test.go similarity index 100% rename from src/restic/options/options_test.go rename to internal/options/options_test.go diff --git a/src/restic/pack/doc.go b/internal/pack/doc.go similarity index 100% rename from src/restic/pack/doc.go rename to internal/pack/doc.go diff --git a/src/restic/pack/pack.go b/internal/pack/pack.go similarity index 100% rename from src/restic/pack/pack.go rename to internal/pack/pack.go diff --git a/src/restic/pack/pack_test.go b/internal/pack/pack_test.go similarity index 100% rename from src/restic/pack/pack_test.go rename to internal/pack/pack_test.go diff --git a/src/restic/pipe/doc.go b/internal/pipe/doc.go similarity index 100% rename from src/restic/pipe/doc.go rename to internal/pipe/doc.go diff --git a/src/restic/pipe/pipe.go b/internal/pipe/pipe.go similarity index 100% rename from src/restic/pipe/pipe.go rename to internal/pipe/pipe.go diff --git a/src/restic/pipe/pipe_test.go b/internal/pipe/pipe_test.go similarity index 100% rename from src/restic/pipe/pipe_test.go rename to internal/pipe/pipe_test.go diff --git a/src/restic/progress.go b/internal/progress.go similarity index 100% rename from src/restic/progress.go rename to internal/progress.go diff --git a/src/restic/progress_unix.go b/internal/progress_unix.go similarity index 100% rename from src/restic/progress_unix.go rename to internal/progress_unix.go diff --git a/src/restic/progress_unix_with_siginfo.go b/internal/progress_unix_with_siginfo.go similarity index 100% rename from src/restic/progress_unix_with_siginfo.go rename to internal/progress_unix_with_siginfo.go diff --git a/src/restic/rand_reader.go b/internal/rand_reader.go similarity index 100% rename from src/restic/rand_reader.go rename to internal/rand_reader.go diff --git a/src/restic/readerat.go b/internal/readerat.go similarity index 100% rename from src/restic/readerat.go rename to internal/readerat.go diff --git a/src/restic/repository.go b/internal/repository.go similarity index 100% rename from src/restic/repository.go rename to internal/repository.go diff --git a/src/restic/repository/doc.go b/internal/repository/doc.go similarity index 100% rename from src/restic/repository/doc.go rename to internal/repository/doc.go diff --git a/src/restic/repository/index.go b/internal/repository/index.go similarity index 100% rename from src/restic/repository/index.go rename to internal/repository/index.go diff --git a/src/restic/repository/index_test.go b/internal/repository/index_test.go similarity index 100% rename from src/restic/repository/index_test.go rename to internal/repository/index_test.go diff --git a/src/restic/repository/key.go b/internal/repository/key.go similarity index 100% rename from src/restic/repository/key.go rename to internal/repository/key.go diff --git a/src/restic/repository/master_index.go b/internal/repository/master_index.go similarity index 100% rename from src/restic/repository/master_index.go rename to internal/repository/master_index.go diff --git a/src/restic/repository/packer_manager.go b/internal/repository/packer_manager.go similarity index 100% rename from src/restic/repository/packer_manager.go rename to internal/repository/packer_manager.go diff --git a/src/restic/repository/packer_manager_test.go b/internal/repository/packer_manager_test.go similarity index 100% rename from src/restic/repository/packer_manager_test.go rename to internal/repository/packer_manager_test.go diff --git a/src/restic/repository/parallel.go b/internal/repository/parallel.go similarity index 100% rename from src/restic/repository/parallel.go rename to internal/repository/parallel.go diff --git a/src/restic/repository/parallel_test.go b/internal/repository/parallel_test.go similarity index 100% rename from src/restic/repository/parallel_test.go rename to internal/repository/parallel_test.go diff --git a/src/restic/repository/pool.go b/internal/repository/pool.go similarity index 100% rename from src/restic/repository/pool.go rename to internal/repository/pool.go diff --git a/src/restic/repository/repack.go b/internal/repository/repack.go similarity index 100% rename from src/restic/repository/repack.go rename to internal/repository/repack.go diff --git a/src/restic/repository/repack_test.go b/internal/repository/repack_test.go similarity index 100% rename from src/restic/repository/repack_test.go rename to internal/repository/repack_test.go diff --git a/src/restic/repository/repository.go b/internal/repository/repository.go similarity index 100% rename from src/restic/repository/repository.go rename to internal/repository/repository.go diff --git a/src/restic/repository/repository_test.go b/internal/repository/repository_test.go similarity index 100% rename from src/restic/repository/repository_test.go rename to internal/repository/repository_test.go diff --git a/src/restic/repository/testdata/test-repo.tar.gz b/internal/repository/testdata/test-repo.tar.gz similarity index 100% rename from src/restic/repository/testdata/test-repo.tar.gz rename to internal/repository/testdata/test-repo.tar.gz diff --git a/src/restic/repository/testing.go b/internal/repository/testing.go similarity index 100% rename from src/restic/repository/testing.go rename to internal/repository/testing.go diff --git a/src/restic/restorer.go b/internal/restorer.go similarity index 100% rename from src/restic/restorer.go rename to internal/restorer.go diff --git a/src/restic/snapshot.go b/internal/snapshot.go similarity index 100% rename from src/restic/snapshot.go rename to internal/snapshot.go diff --git a/src/restic/snapshot_find.go b/internal/snapshot_find.go similarity index 100% rename from src/restic/snapshot_find.go rename to internal/snapshot_find.go diff --git a/src/restic/snapshot_policy.go b/internal/snapshot_policy.go similarity index 100% rename from src/restic/snapshot_policy.go rename to internal/snapshot_policy.go diff --git a/src/restic/snapshot_policy_test.go b/internal/snapshot_policy_test.go similarity index 100% rename from src/restic/snapshot_policy_test.go rename to internal/snapshot_policy_test.go diff --git a/src/restic/snapshot_test.go b/internal/snapshot_test.go similarity index 100% rename from src/restic/snapshot_test.go rename to internal/snapshot_test.go diff --git a/src/restic/tag_list.go b/internal/tag_list.go similarity index 100% rename from src/restic/tag_list.go rename to internal/tag_list.go diff --git a/src/restic/test/doc.go b/internal/test/doc.go similarity index 100% rename from src/restic/test/doc.go rename to internal/test/doc.go diff --git a/src/restic/test/helpers.go b/internal/test/helpers.go similarity index 100% rename from src/restic/test/helpers.go rename to internal/test/helpers.go diff --git a/src/restic/test/vars.go b/internal/test/vars.go similarity index 100% rename from src/restic/test/vars.go rename to internal/test/vars.go diff --git a/src/restic/testdata/filter_snapshots_0 b/internal/testdata/filter_snapshots_0 similarity index 100% rename from src/restic/testdata/filter_snapshots_0 rename to internal/testdata/filter_snapshots_0 diff --git a/src/restic/testdata/filter_snapshots_1 b/internal/testdata/filter_snapshots_1 similarity index 100% rename from src/restic/testdata/filter_snapshots_1 rename to internal/testdata/filter_snapshots_1 diff --git a/src/restic/testdata/filter_snapshots_2 b/internal/testdata/filter_snapshots_2 similarity index 100% rename from src/restic/testdata/filter_snapshots_2 rename to internal/testdata/filter_snapshots_2 diff --git a/src/restic/testdata/filter_snapshots_3 b/internal/testdata/filter_snapshots_3 similarity index 100% rename from src/restic/testdata/filter_snapshots_3 rename to internal/testdata/filter_snapshots_3 diff --git a/src/restic/testdata/filter_snapshots_4 b/internal/testdata/filter_snapshots_4 similarity index 100% rename from src/restic/testdata/filter_snapshots_4 rename to internal/testdata/filter_snapshots_4 diff --git a/src/restic/testdata/filter_snapshots_5 b/internal/testdata/filter_snapshots_5 similarity index 100% rename from src/restic/testdata/filter_snapshots_5 rename to internal/testdata/filter_snapshots_5 diff --git a/src/restic/testdata/filter_snapshots_6 b/internal/testdata/filter_snapshots_6 similarity index 100% rename from src/restic/testdata/filter_snapshots_6 rename to internal/testdata/filter_snapshots_6 diff --git a/src/restic/testdata/filter_snapshots_7 b/internal/testdata/filter_snapshots_7 similarity index 100% rename from src/restic/testdata/filter_snapshots_7 rename to internal/testdata/filter_snapshots_7 diff --git a/src/restic/testdata/filter_snapshots_8 b/internal/testdata/filter_snapshots_8 similarity index 100% rename from src/restic/testdata/filter_snapshots_8 rename to internal/testdata/filter_snapshots_8 diff --git a/src/restic/testdata/filter_snapshots_9 b/internal/testdata/filter_snapshots_9 similarity index 100% rename from src/restic/testdata/filter_snapshots_9 rename to internal/testdata/filter_snapshots_9 diff --git a/src/restic/testdata/policy_keep_snapshots_0 b/internal/testdata/policy_keep_snapshots_0 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_0 rename to internal/testdata/policy_keep_snapshots_0 diff --git a/src/restic/testdata/policy_keep_snapshots_1 b/internal/testdata/policy_keep_snapshots_1 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_1 rename to internal/testdata/policy_keep_snapshots_1 diff --git a/src/restic/testdata/policy_keep_snapshots_10 b/internal/testdata/policy_keep_snapshots_10 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_10 rename to internal/testdata/policy_keep_snapshots_10 diff --git a/src/restic/testdata/policy_keep_snapshots_11 b/internal/testdata/policy_keep_snapshots_11 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_11 rename to internal/testdata/policy_keep_snapshots_11 diff --git a/src/restic/testdata/policy_keep_snapshots_12 b/internal/testdata/policy_keep_snapshots_12 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_12 rename to internal/testdata/policy_keep_snapshots_12 diff --git a/src/restic/testdata/policy_keep_snapshots_13 b/internal/testdata/policy_keep_snapshots_13 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_13 rename to internal/testdata/policy_keep_snapshots_13 diff --git a/src/restic/testdata/policy_keep_snapshots_14 b/internal/testdata/policy_keep_snapshots_14 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_14 rename to internal/testdata/policy_keep_snapshots_14 diff --git a/src/restic/testdata/policy_keep_snapshots_15 b/internal/testdata/policy_keep_snapshots_15 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_15 rename to internal/testdata/policy_keep_snapshots_15 diff --git a/src/restic/testdata/policy_keep_snapshots_16 b/internal/testdata/policy_keep_snapshots_16 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_16 rename to internal/testdata/policy_keep_snapshots_16 diff --git a/src/restic/testdata/policy_keep_snapshots_17 b/internal/testdata/policy_keep_snapshots_17 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_17 rename to internal/testdata/policy_keep_snapshots_17 diff --git a/src/restic/testdata/policy_keep_snapshots_18 b/internal/testdata/policy_keep_snapshots_18 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_18 rename to internal/testdata/policy_keep_snapshots_18 diff --git a/src/restic/testdata/policy_keep_snapshots_19 b/internal/testdata/policy_keep_snapshots_19 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_19 rename to internal/testdata/policy_keep_snapshots_19 diff --git a/src/restic/testdata/policy_keep_snapshots_2 b/internal/testdata/policy_keep_snapshots_2 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_2 rename to internal/testdata/policy_keep_snapshots_2 diff --git a/src/restic/testdata/policy_keep_snapshots_20 b/internal/testdata/policy_keep_snapshots_20 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_20 rename to internal/testdata/policy_keep_snapshots_20 diff --git a/src/restic/testdata/policy_keep_snapshots_3 b/internal/testdata/policy_keep_snapshots_3 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_3 rename to internal/testdata/policy_keep_snapshots_3 diff --git a/src/restic/testdata/policy_keep_snapshots_4 b/internal/testdata/policy_keep_snapshots_4 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_4 rename to internal/testdata/policy_keep_snapshots_4 diff --git a/src/restic/testdata/policy_keep_snapshots_5 b/internal/testdata/policy_keep_snapshots_5 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_5 rename to internal/testdata/policy_keep_snapshots_5 diff --git a/src/restic/testdata/policy_keep_snapshots_6 b/internal/testdata/policy_keep_snapshots_6 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_6 rename to internal/testdata/policy_keep_snapshots_6 diff --git a/src/restic/testdata/policy_keep_snapshots_7 b/internal/testdata/policy_keep_snapshots_7 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_7 rename to internal/testdata/policy_keep_snapshots_7 diff --git a/src/restic/testdata/policy_keep_snapshots_8 b/internal/testdata/policy_keep_snapshots_8 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_8 rename to internal/testdata/policy_keep_snapshots_8 diff --git a/src/restic/testdata/policy_keep_snapshots_9 b/internal/testdata/policy_keep_snapshots_9 similarity index 100% rename from src/restic/testdata/policy_keep_snapshots_9 rename to internal/testdata/policy_keep_snapshots_9 diff --git a/src/restic/testdata/used_blobs_snapshot0 b/internal/testdata/used_blobs_snapshot0 similarity index 100% rename from src/restic/testdata/used_blobs_snapshot0 rename to internal/testdata/used_blobs_snapshot0 diff --git a/src/restic/testdata/used_blobs_snapshot1 b/internal/testdata/used_blobs_snapshot1 similarity index 100% rename from src/restic/testdata/used_blobs_snapshot1 rename to internal/testdata/used_blobs_snapshot1 diff --git a/src/restic/testdata/used_blobs_snapshot2 b/internal/testdata/used_blobs_snapshot2 similarity index 100% rename from src/restic/testdata/used_blobs_snapshot2 rename to internal/testdata/used_blobs_snapshot2 diff --git a/src/restic/testing.go b/internal/testing.go similarity index 100% rename from src/restic/testing.go rename to internal/testing.go diff --git a/src/restic/testing_test.go b/internal/testing_test.go similarity index 100% rename from src/restic/testing_test.go rename to internal/testing_test.go diff --git a/src/restic/tree.go b/internal/tree.go similarity index 100% rename from src/restic/tree.go rename to internal/tree.go diff --git a/src/restic/tree_test.go b/internal/tree_test.go similarity index 100% rename from src/restic/tree_test.go rename to internal/tree_test.go diff --git a/src/restic/walk/testdata/walktree-test-repo.tar.gz b/internal/walk/testdata/walktree-test-repo.tar.gz similarity index 100% rename from src/restic/walk/testdata/walktree-test-repo.tar.gz rename to internal/walk/testdata/walktree-test-repo.tar.gz diff --git a/src/restic/walk/walk.go b/internal/walk/walk.go similarity index 100% rename from src/restic/walk/walk.go rename to internal/walk/walk.go diff --git a/src/restic/walk/walk_test.go b/internal/walk/walk_test.go similarity index 100% rename from src/restic/walk/walk_test.go rename to internal/walk/walk_test.go diff --git a/src/restic/worker/doc.go b/internal/worker/doc.go similarity index 100% rename from src/restic/worker/doc.go rename to internal/worker/doc.go diff --git a/src/restic/worker/pool.go b/internal/worker/pool.go similarity index 100% rename from src/restic/worker/pool.go rename to internal/worker/pool.go diff --git a/src/restic/worker/pool_test.go b/internal/worker/pool_test.go similarity index 100% rename from src/restic/worker/pool_test.go rename to internal/worker/pool_test.go