Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Quickly duplicate a file with an incremented name
ResourceFunction["BackupFile"][] saves a copy the current notebook with an incremented filename. | |
ResourceFunction["BackupFile"][nb] saves a copy of notebook object nb with an incremented filename. | |
ResourceFunction["BackupFile"][file] saves a copy of file with an incremented filename. |
Backup the current notebook:
In[1]:= |
|
Out[1]= |
|
The filename counter will automatically increment:
In[2]:= |
|
Out[2]= |
|
Create multiple copies of a file:
In[3]:= |
|
Out[3]= |
|
Backup relative files:
In[4]:= |
|
Out[4]= |
|
In[5]:= |
|
Out[7]= |
|
In[8]:= |
|
Out[8]= |
|
Duplicate works for valid string paths or File objects:
In[9]:= |
|
Out[9]= |
|
BackupFile works on any open or closed NotebookObject:
In[10]:= |
|
In[11]:= |
|
Out[11]= |
|
In[12]:= |
|
Out[12]= |
|
In[13]:= |
|
BackupFile only works on saved notebooks:
In[14]:= |
|
Out[14]= |
|
In[15]:= |
|
Out[16]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License