Tar directories

is there any way I can tarball a directory, I could only find doing it on files but not directories recursively? Yes, I did see tar.append_dir_all("backup/logs", "/var/log")?; but I don't really understand why there is 2 folders. I cant tell if I am just dumped or if there is no way to do it.

I believe the first path to append_dir_all will be the directory that the directory will appear as in the tarball. The second path is the local directory with files that you want to add to the tarball.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.