pub async fn backup<L: AnyBackupLocation>(&self, location: L) -> Result<(), Error> {
        let databases = {
            self.data
                .available_databases
                .read()
                .await
                .keys()
                .cloned()
                .collect::<Vec<_>>()
        };

        for name in databases {
            let database = self.database_without_schema(&name).await?;
            self.backup_database(&database, &location).await?;
        }

        Ok(())
    }
/// Stores a copy of all data in this instance to `location`.
Stores a copy of all data in this instance to `location`.
Stores a copy of all data in this instance to ` location ` .
pub async fn backup<L: AnyBackupLocation>(&self, location: L) -> Result<(), Error> {
        let databases = {
            self.data
                .available_databases
                .read()
                .await
                .keys()
                .cloned()
                .collect::<Vec<_>>()
        };
        for name in databases {
            let database = self.database_without_schema(&name).await?;
            self.backup_database(&database, &location).await?;
        }
        Ok(())
    }
pub async fn backup < L : AnyBackupLocation > ( & self , location : L ) -> Result < ( ) , Error > { let databases = { self . data . available_databases . read ( ) . await . keys ( ) . cloned ( ) . collect :: < Vec < _ > > ( ) } ; for name in databases { let database = self . database_without_schema ( & name ) . await ? ; self . backup_database ( & database , & location ) . await ? ; } Ok ( ( ) ) }
Stores a copy of all data in this instance to `location`.
Stores a copy of all data in this instance to ` location ` .
&self
location
L
&self
location
L