im making an bash script
and my aim is to backup:
i know i can do it using:
tar czf archive.tar.gz filepath1 filepath2 folderpath3
BUT i dont know how can i extract it easilly using one command into its pathes back?
tar xzf archive.tar.gz -C /destination/path/
should extract it? but it puts wrongly all files into one directory, setting path to / i would quess wont work?