backup

Use child-item result object in array

会有一股神秘感。 提交于 2019-12-02 04:09:45
I encountered a problem in PowerShell in listing its child items. $file = Get-ChildItem \\compname\c$\folder\ -Recurse -Filter *filename.txt* | Select-Object -Property DirectoryName, FullName When I try this to get its objects it was empty: $file.FullName or $file.DirectoryName If there is a many files in that directory with the same file name, how can I backup up those files in the same folder by by adding .bak on its file extension. You're still using PowerShell v2 or earlier. These early versions don't support member enumeration on arrays, which would allow you to access properties of array

will show table status display exact rows in the table?

拟墨画扇 提交于 2019-12-02 03:52:05
I have a table in DB and it is approx 90 GB in space. I tried to count no of rows in the table select count(idNewsNotification) from notification and it resulted 4982397 1 row in set (59 min 48.35 sec) But when I queried using show table status like <table_name> it is showing that Engine: InnoDB Version: 10 Row_format: Compact Rows: 8631267 Avg_row_length: 11237 Data_length: 96996425728 Max_data_length: 0 Index_length: 175374336 Data_free: 0 Auto_increment: NULL ..... What is the perfect procedure for knowing the no of records in the table ? The fact that your count took an hour implies that

Excluding files from iCloud backup

我怕爱的太早我们不能终老 提交于 2019-12-02 03:20:39
问题 I'm using iOS 5.1 I use this peace of code [pathURL setResourceValue:[NSNumber numberWithBool:YES] forKey:NSURLIsExcludedFromBackupKey error:nil]; The folder where I put my content is (inside app sandbox) .../Library/Application Support/, not a /Documents folder I do not receive any errors and the result of setResourceValue: is YES Why do I see 2 MB is Settings -> iCloud -> ... etc. where I can check the apps data size? 回答1: Finally I found the solution by myself The clue is to apply

Excluding files from iCloud backup

本秂侑毒 提交于 2019-12-01 23:23:46
I'm using iOS 5.1 I use this peace of code [pathURL setResourceValue:[NSNumber numberWithBool:YES] forKey:NSURLIsExcludedFromBackupKey error:nil]; The folder where I put my content is (inside app sandbox) .../Library/Application Support/, not a /Documents folder I do not receive any errors and the result of setResourceValue: is YES Why do I see 2 MB is Settings -> iCloud -> ... etc. where I can check the apps data size? Finally I found the solution by myself The clue is to apply NSURLIsExcludedFromBackupKey to root folder not to every file you want to exclude from backup so at very beginning

mysterious vanishing branches in git

爱⌒轻易说出口 提交于 2019-12-01 22:14:50
Here are some git actions I performed. As you can see, I made a new branch, modified my files, and then committed the changes. After changing back to another branch, hoping to merge, the branch I was just working on disappeared. Does anyone know how I can recover the files from fixed_merge_branch? I'm freaking out! 1.9.2@whisperme$ git branch fixed_merge_conflict 1.9.2@whisperme$ git checkout fixed_merge_conflict M ArtworkViewController.h M ArtworkViewController.m M ArtworkViewController.xib M Classes/DFRAppDelegate.h M Classes/DFRAppDelegate.m M Classes/WorkGalleryViewController.m M Classes

Backup and upload to FTP server [closed]

混江龙づ霸主 提交于 2019-12-01 15:29:13
Can anyone direct me to a script solution that makes a backup of a directory and uploads it to an ftp server? I was searching for a batch script initially but any solution would do, as long as it is open source. Thanks in advance, Jean Alex I'll be working on one soon, but WinSCP has a CLI that you can use to accomplish this: http://winscp.net/eng/docs/commandline There are plenty examples using WinSCP on stackoverflow and on other sites, like: Batch file when using WinSCP and command prompt Problem in executing the batch file in winscp You can use this url get more examples: https:/

How to save a folder when user confirms uninstallation? (Inno Setup)

流过昼夜 提交于 2019-12-01 12:33:59
How can I save a backup copy of an specific folder to user desktop, when user confirms application uninstall? I tried this without success... Maybe there is an easier way to do it without using code... procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin if CurUninstallStep = usUninstall then begin FileCopy('{app}\Profile\*', '{userdesktop}\Backup\Profile\', False); end; end; Thank you guys! :) Martin Prikryl Triggering the backup on CurUninstallStepChanged(usUninstall) is the best solution. The problems you have are: The FileCopy function cannot copy folders. For that

How to delete Azure Recovery Services vault?

时光毁灭记忆、已成空白 提交于 2019-12-01 12:23:20
When I am trying to delete the Azure Recovery Services Vault from Azure portal, I got the error like in below figure. Even I deleted all backup items and replicated items from the vault. For deleting the Azure Recovery Services vault, I have followed the below link Delete an Azure Backup vault So, how to delete the Azure recovery Services vault using portal or power shell cmdlet? I used to encounter the same problem, there are SQL backups in the vault. You need find SQL backups and delete them. You could check this answer to solve this issue. $vault = Get-AzureRmRecoveryServicesVault -Name

How to save a folder when user confirms uninstallation? (Inno Setup)

你说的曾经没有我的故事 提交于 2019-12-01 11:07:46
问题 How can I save a backup copy of an specific folder to user desktop, when user confirms application uninstall? I tried this without success... Maybe there is an easier way to do it without using code... procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin if CurUninstallStep = usUninstall then begin FileCopy('{app}\Profile\*', '{userdesktop}\Backup\Profile\', False); end; end; Thank you guys! :) 回答1: Triggering the backup on CurUninstallStepChanged(usUninstall) is the

How to delete Azure Recovery Services vault?

こ雲淡風輕ζ 提交于 2019-12-01 10:22:19
问题 When I am trying to delete the Azure Recovery Services Vault from Azure portal, I got the error like in below figure. Even I deleted all backup items and replicated items from the vault. For deleting the Azure Recovery Services vault, I have followed the below link Delete an Azure Backup vault So, how to delete the Azure recovery Services vault using portal or power shell cmdlet? 回答1: I used to encounter the same problem, there are SQL backups in the vault. You need find SQL backups and