snek5000.util.archive#
Post simulation archive-creation utilities
Functions
|
Archive simulation contents into a tarball / compress a tarball. |
|
Clean a simulation after archiving into a tarball. |
|
|
|
|
|
|
|
|
|
Equivalent to rm -rf |
|
|
|
Generate a tarball name based on contents of current working directory. |
- snek5000.util.archive.archive(tarball, items=(), remove=False, readonly=False)[source]#
Archive simulation contents into a tarball / compress a tarball.
Examples
>>> archive("test.tar.xz", ["file1", "file2"]) # runs tar -cvf test.tar.xz file1 file2
>>> archive("test.tar.gz") # runs gzip test.tar
- snek5000.util.archive.clean_simul(case, tarball)[source]#
Clean a simulation after archiving into a tarball.