In general, we recommend using our automatic backups feature, so that it's possible for you to restore deleted files yourself using our Media Library UI or API. Our documentation has information on enabling automatic backup, as well as restoring deleted assets from backup using an SDK or via the Media Library. If you are on a paid plan, you can choose to automatically backup your assets to an Amazon S3 or Google Cloud bucket owned by you, so that the backup copies of your files don't contribute to your Cloudinary account's storage usage but are still managed by us.
If you do not have automatic backups enabled, it may be possible for us to recover deleted assets if the deletion took place fewer than 30 days ago by raising a support request via the "Submit a request" link at support.cloudinary.com.
To retrieve the files, you will need to provide a list of all the assets you would like us to attempt to recover in a CSV file, where each line of the CSV consists of the following fields in this exact order:<public_id>,<format>,<resource_type>,<type>
. If you add a header line, the headers need to be named exactly public_id,format,resource_type,type
A template is available at https://res.cloudinary.com/demo/raw/upload/recover_sample.csv.
- <public_id> is the name of the file, including any folder path.
- For example,
sample
for the sample image in your account,test/cat
for a file called 'cat' in a folder called 'test'.
- For example,
-
<format> is the file extension associated with the original resource's file type
- e.g. jpg, mp4
-
<resource_type> is what kind of asset you're trying to recover
- Your asset will be of resource_type image, video, or raw.
-
<type> is the delivery type of your asset
- upload, private, and authenticated are the most common types, with upload being the default. A full list of supported delivery types is available here in our documentation.
Adding a format is not mandatory but it is recommended because it will significantly speed up the recovery process. If you choose not to provide a format, please still make sure to include the comma separating the 'empty' format from the next field (e.g: cat,,image,upload
)
Comments
0 comments
Article is closed for comments.