Hi,
Ive been using opus for about 4 years but only for quite simple stuff so far and i think this is my first technical post, I've searched the posts, tutorials and faq and closest ive found is resource.dopus.com/viewtopic.php ... batch+edit which is different
im trying to do something similar to whats described there by John and abr, or at least it is the closest ive been able to find. i get the feeling that people in the know automate this kind of thing, I'm just not sure how to search for it let alone do it.
first thing Im trying to do is replace several files in several folders as a batch or script eg
eg upload/replace
sitelogo.jpg into /wp-content/themes/default/images
favlogo.ico into /wp-content/themes/default/images/favicon
several files into wp-content/themes/default/images/header/images
the files im uploading could be arranged in the relevant file structure but there are other files in the destination folders that i dont want to overwrite so i cant simply replace the folders if that makes sense. Thinking about it, i guess thats not far of being simple a one way sync is that a good way to do it?
If that is possible can a batch upload/sync be done with mulitple files to multiple folders.
eg
functions.php into /wp-content/themes/default
footer.php into /wp-content/themes/
and several files into wp-content/plugins
and be able to batch/repeat that for several sites/folders
eg
/site1/wp-content/
/site2/wp-content/
/site3/wp-content/
/site16/wp-content/
I guess thats kind of a batched one way sync? is that possible and a good way to do things like this?
You can probably tell from my explanation that im not a pro coder but I can follow instructions fine if i can find them.
You don't need to do anything special to accomplish that.
Just arrange the source files into the same relative folders and then copy the folders to the FTP site.
When copying, Opus never replaces folders; it always merges them. Only individual files will be replaced when copying. Any additional files & folders in the destination will be left alone.
(When synching, rather than copying, you can tell Opus to delete destination files which don't exist in the source. That's the only time a copy or sync will delete a file from the destination that I can think of.)
many thanks Leo, thats great and obviously i could repeat that process manually to upload the same files/folders into multiple sites, is there any save or record an copy/upload to multiple target folders, so that the same script or sync can be run again?
You can make buttons which copy the selected files to multiple places. e.g.:
Copy TO "E:\Temp\1\"
Copy TO "E:\Temp\2\"
In the example in your post I'm not sure where the destination folders are so you might need something slightly different.
that will be really handy for some of things i need to do.
im trying to update wordpress blog directories by ftp.
everytime i set up a new wordpress blog i have to upload a bunch of plugin folders which is no big deal especially with the info you gave me yesterday about maintained file structure.
but then quite often ill also need to add a new plugin to 35 + blogs so the new plugin needs to copied to 35 different folders. plus new blogs are being added all the time so this list of destination folders is constantly growing making the job more tedious and prone to errors.
i was hoping its possible to save a list of these destination folders so i can run it all as one batch upload each time i need to upload a new file to all directories. and hopefully when a new blog is added it will be quite simple for me to add the new folder path to the script/batch job.
I may not be understanding what you're trying to do, but couldn't you make a button such as shown by Leo but containing 35+ rather than 2 Copy commands?
I don't know if that's the best way, it seems like it might be one possibility.
I might be inclined to maintain the list of destinations in a text file, write a script to read the list and perform Copy commands, and create a button to invoke the script and pass it the identity of the file to be copied.