tar cf - <files> -P | pv -s $(du -sb <files> | awk '{print $1}') | gzip > <some .tar.gz file>where:
- `` is the root-mounted (i.e. starts with /) path to the files
| (async () => { | |
| async function blobToBase64(blob) { | |
| return await new Promise((resolve) => { | |
| const reader = new FileReader(); | |
| reader.onload = function() { | |
| resolve(reader.result.split(',')[1]); | |
| } | |
| reader.readAsDataURL(blob); | |
| }); | |
| } |