[Yandex Cloud documentation](../../index.md) > [Yandex Managed Service for PostgreSQL](../index.md) > FAQ > Moving and restoring a cluster

# Moving and restoring a PostgreSQL cluster

* [Can I restore a cluster backup to a running Managed Service for PostgreSQL instance in another cloud network?](#diff-network)

* [Can I change the retention period for automatic backups?](#backup-retain-days)

* [Do I need the wal2json plugin if I am only doing replication and not copying?](#wal2json)

* [Can I download a database backup to my local machine?](#backup-local-dump)

* [How do I move a local PostgreSQL database dump to Yandex Cloud?](#dump-to-yc)

* [How do I migrate a database or a table from one cluster to another?](#transfer-db-table)

* [How do I transfer data between clusters in different folders or clouds?](#transfer-data)

* [How do I move a cluster to another cloud?](#transfer-cluster)

* [How do I restore a backup to an existing cluster?](#restore-existing-cluster)

* [How do I restore a cluster to the state of the selected backup?](#cluster-existing-backup)

* [Can I recover a single database from a backup?](#restore-one-database)

#### Can I restore a cluster backup to a running Managed Service for PostgreSQL instance in another cloud network? {#diff-network}

Yes, you can switch to another cloud network when restoring a cluster from a backup.

#### Can I change the retention period for automatic backups? {#backup-retain-days}

You can set a retention period for automatic backups:

* When [creating](../operations/cluster-create.md) or [updating](../operations/update.md#change-additional-settings) a cluster. Possible values: between 7 and 60 days.

* When [creating](../operations/backup-retention-policies.md#create-policy) backup policies. Possible values: between 7 and 1095 days (up to three years).

#### Do I need the wal2json plugin if I am only doing data replication and not copying? {#wal2json}

Yes, you need this plugin even if you do not copy data.

#### Can I download a database backup to my local machine? {#backup-local-dump}

While Yandex Cloud service does not support local backup downloads, you can use the [pg_dump utility](https://www.postgresql.org/docs/current/app-pgdump.html) as an alternative.

#### How do I move a local PostgreSQL database dump to Yandex Cloud? {#dump-to-yc}

Follow the steps described in this [Migrating databases tutorial](../tutorials/data-migration.md).

#### How do I migrate a database or a table from one cluster to another? {#transfer-db-table}

You can migrate a database or a table using Data Transfer or [pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html).

For more information on using Data Transfer for migration, see [Database migration](../tutorials/outbound-replication.md).

#### How do I transfer data between clusters in different folders or clouds? {#transfer-data}

You can transfer data using Data Transfer or [pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html).

For more information on using Data Transfer for migration, see [Database migration](../tutorials/outbound-replication.md).

#### How do I move a cluster to another cloud? {#transfer-cluster}

You can move a cluster using Data Transfer or [pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html).

For more information on using Data Transfer for migration, see [Database migration](../tutorials/outbound-replication.md).

#### How do I restore a backup to an existing cluster? {#restore-existing-cluster}

You can only restore a backup to a new cluster.

#### How do I restore a cluster to the state of the selected backup? {#cluster-existing-backup}

You can only restore a backup to a new cluster.

#### Can I restore a single database from a backup? {#restore-one-database}

No, you cannot select specific databases. You can only restore the entire cluster with all its databases.