Recover files from Web Deploy "Remove additional files at destination" - windows-server-2012

I've deployed a website on a dedicated OVH server running Windows Server 2012.
I used WebDeploy and I checked the option "Remove additional files at destination". A WordPress folder was at this destination and was deleted.
How may I recover those files?

I think your out of luck. There isn't any way to recover the files via WebDeploy.
Maybe you can recover the files using one of those undelete utilities that does a deep scan of the harddrive to attempt to recover files.

Related

Publish website to Azure, remove additional files at destination, but ignore specific folders

I currently manually delete obsolete folders from a published azure website. I know there is an option in visual studio to Remove additional files at destination. My problem is that I have an Images folder (quite large) that users upload, that will be deleted when I publish with this option checked. My question is, is there a way to use this option with exclusions? Meaning, to delete all files that are not in the local project except "\Images" folder?
You can most likely customize the web deploy usage from VS to do what you want but I don't think I would recommend it since things like that tend to get fragile.
I would suggest changing your architecture to store the images in a blob container, then possibly mapping your blobs to a custom domain (https://azure.microsoft.com/en-us/documentation/articles/storage-custom-domain-name/).
Having your images in blob storage will also prevent any accidental deletion of the Images folder by someone else that doesn't know it shouldn't be touched (or you simply forgetting about it one day).
Using blob storage will also allow you to configure CDN usage if ever find that you needed it.
Another option would be to create a virtual directory on your WebApp configuration and put the Images there - that way your VS deploy/publish wouldn't be modifying that subdirectory. This link may help with that: https://blogs.msdn.microsoft.com/tomholl/2014/09/21/deploying-multiple-virtual-directories-to-a-single-azure-website/

automatic backup for web deploy 3 (IIS) - to exclude folders in the backup

I have managed to setup Web Deploy Automatic Backups by following this guide, which works great. However, in my websites I have a folder relative to the root /uploads/ which contains all user-uploaded images which can be quite large.
The backup snapshot took a copy of that folder as well, and this results in huge backups. Is it possible to exclude certain folders from the backup?
There are skip parameters that you can use, try:
msdeploy.exe -verb:sync -source:backupmanager -dest:backupmanager=<siteName>,uselast=true -skip:xpath=dirPath[#path='App_Data']
So basically add -skip:xpath="/uploads/"

automatic cpanel backup on shared hosting

I have been looking for a way to backup complete cpanel including all the files and databases locally on the shared hosting.
No backup option was provided in cpanel.
I've googled it but all I could found was the php script for automatic backup using FTP on remote host.
What I'm looking for is the way to backup on the local shared host.
I've tried using the code for FTP backup on remote host by changing the values to what my local shared host have but didn't work for me.
It sounds useless to keep the backup locally but that's the only option we have now.
Thanks
what you can or cannot backup is decided by the host. You should contact their support (it's easier). I don't understand what codes are you looking for alternatively. The surest backup is to keep a copy of your files on your hard-disk and FTP is the probably the most reliable way to do it. I might be wrong but...
If you don't want to backup to a remote FTP server, check out this backup script generator that allows you to save backups to your local shared host (just leave the FTP server section empty)
You can use cPanel UAPI to do that. cPanel full backup contain everything. Here is an example code for free automated remote backup for GoDaddy.

Can SharePoint be installed by simply copying files?

I have a SharePoint website I need to move to another completely different server.
Can I do this by simply copying files from IIS to the other server's IIS folder?
I assume I need to copy the database as well as change the config file's database connection.
I assume I don't need to install anything on the server other than ftp files across i.e. I don't need to install files via an installer or exe.
The short answer is no.
SharePoint includes Service applications (ex. OWSTimer) that have to be registered and installed.
Also there are COM components that must be registered properly.

Cruisecontrol, deployment, folder permissions

We're using cruisecontrol.net, it builds the version, creates a zip file, then 15 min later, unzips the file on the Integration server. But when the folder gets to the integration server, often, the security permission on one of the folders is totally hosed. The Domain admin and folder owner can't even open the folder in explorer. We reboot and the folder permissions are good we can delete the folder and redeploy the zip file and it's okay.
Does anyone have any idea what or how the folder permissions are getting so messed up?
Any tools to use to diagnose/watch what exactly is messing it up?
Have you tried using psexec from system internals to upzip to file on the remote machine rather than the build machine?
Also, it seems to me that rather than unzipping the zip just copy the stuff directly to the remote server. I'm not seeing the reason to zip it and then just unzip it?

Resources