becky_cli/becky/backups/backup.py
def restore_files(self, path, restore_path, timestamp):
        """
        Restores file/folder(recursive) at a given timestamp to a restore folder.
        The actual restore happens inside the provider, so the backup doesn't know
        anything about how this actual process works.
        """
        applicable_items = [f for f in self.saved_files if (f['name'] == path or path in f['directory'] or f['name'] in path) and f['date'] <= timestamp]
        files_to_restore = self._get_newest_versions(applicable_items)
        provider = self._get_provider()
        restored_files, skipped_files = provider.restore_files(files_to_restore, restore_path)
        print(f"Restored {len(restored_files)} files, skipped {len(skipped_files)} files.")

        Restores file/folder(recursive) at a given timestamp to a restore folder.
        The actual restore happens inside the provider, so the backup doesn't know
        anything about how this actual process works.
        
Restores file/folder(recursive) at a given timestamp to a restore folder.
The actual restore happens inside the provider, so the backup doesn't know
anything about how this actual process works.
Restores file / folder ( recursive ) at a given timestamp to a restore folder . The actual restore happens inside the provider so the backup doesn ' t know anything about how this actual process works .
def restore_files(self, path, restore_path, timestamp):
        applicable_items = [f for f in self.saved_files if (f['name'] == path or path in f['directory'] or f['name'] in path) and f['date'] <= timestamp]
        files_to_restore = self._get_newest_versions(applicable_items)
        provider = self._get_provider()
        restored_files, skipped_files = provider.restore_files(files_to_restore, restore_path)
        print(f"Restored {len(restored_files)} files, skipped {len(skipped_files)} files.")
def restore_files ( self , path , restore_path , timestamp ) : applicable_items = [ f for f in self . saved_files if ( f [ 'name' ] == path or path in f [ 'directory' ] or f [ 'name' ] in path ) and f [ 'date' ] <= timestamp ] files_to_restore = self . _get_newest_versions ( applicable_items ) provider = self . _get_provider ( ) restored_files , skipped_files = provider . restore_files ( files_to_restore , restore_path ) print ( f"Restored {len(restored_files)} files, skipped {len(skipped_files)} files." )
Restores file/folder(recursive) at a given timestamp to a restore folder.
Restores file / folder ( recursive ) at a given timestamp to a restore folder .
"""
        Restores file/folder(recursive) at a given timestamp to a restore folder.
        The actual restore happens inside the provider, so the backup doesn't know
        anything about how this actual process works.
        """
self
path
restore_path
timestamp