how can i move "dataName".sql.gz into a folder called 'database' and then move "$fileName".tar.gz * .htaccess into a folder called 'www' with the entire gzipped file being "$fileName".tar.gz? Is this doable or overly complex.
so
mydemo--2015-03-23-1500.tar.gz
> database
- _mydemo--2015-03-23-1500.sql.gz
> www
- all the files
instead of
mydemo--2015-03-23-1500.tar.gz
- _mydemo--2015-03-23-1500.sql.gz
- all the files
i want to take the database archive, put it in _backups in a folder called 'database', then i want to take the site, put it in _backups in a folder called 'www', and have the entire thing archived.
i want each individual archive to contain a folder for www and database... so _backups is currently the parent directory of the final archive file... which just throws the database and the files in the same folder and zips it up. i want to create more structure in my archive.
Could you please provide a trees of both, your pwd (where you create the tarballs) and desired output?
From the sound of your last post, i assume you are in the www directory.