Automate SQL full backup

Dear Experts,
In our company we have a SAP 4.7 installed on MS SQL server 2000, Daily we need to stay untill all the users complete their work and fire the db13 backup and SQl query disk backup, for this i have scheduled a job in the SQL server enterprise manager and put a script where in i have to change the script everyday.
if you can provide me a script where in it changes the date & time of the file name every day automatically
The script i use is as follows:
use master
exec sp_addumpdevice 'disk','PRDF270807_1909','<path>\PRDF270807_1909'
backup DATABASE PRD to PRDF270807_1909
Kindly help me in this regards,
Thnx in advance
Kishore.

Hi,
i use this script to make a backup to a different device every week, you can easily modify this to a daily change. You can add a network share as target as well.
I have this script scheduled as a SQL Agent Job and it works like a charm.
Regards
  Clas
declare @week varchar(3)
declare @devl varchar(20)
declare @devp varchar(400)
declare @dev varchar(20)
select @week = datepart(ww,getdate())
set @devl = 'vsdata_week_' + @week + '.db'
set @devp = 'c:\tools\VSWMI\Backup\vsdata_week_' + @week + '.db'
if not exists (select name from sys.backup_devices where name = @devl)
        exec sp_addumpdevice 'DISK',@devl,@devp
declare crs cursor for
        select name from sys.backup_devices
        where name like 'vsdata%' and
              name <> @devl
open crs
fetch next from crs into @dev
while (@@fetch_status = 0) begin
     exec sp_dropdevice @dev
     fetch next from crs into @dev
end
close crs
deallocate crs
BACKUP DATABASE [VSData] TO @devl WITH NOFORMAT, NOINIT, 
NAME = N'VSData-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, 
STATS = 10, CHECKSUM, CONTINUE_AFTER_ERROR

Similar Messages

  • Automatic Offline Full Backup Plan: CQ5 Installed As a Service

    I have designed an Automatic Offline Full Backup Plan for CQ5 Installed As a Service. I welcome your comments.
    Do you have any better way (scripts)?
    Offline Full Backup Scripts for Author
    :: offlineAuthorBackUp_CQ5AsService.bat
    :: Stop CQ5 service
    chdir /D %~dp0
    net stop cq5
    ::copy all files and folders to the destination
    mkdir h:\cq5backup\offline\author\backup
    ::robocopy only copies the updated files, so it is very quickly
    c:
    robocopy /MIR c:\cq5\author h:\cq5backup\offline\author\backup
    :: Start CQ5 service
    net start cq5
    ::Zip the backup with 7z.exe
    h:
    cd h:\cq5backup\offline\author
    7z a -y -tzip offlineAuthorBackup_%date:~4,2%%date:~7,2%.zip h:\cq5backup\offline\author\backup

    There is one big advantage of a clone.  You can immediately reboot
    to it and continue working and deal with the regular boot drive faiure,
    what ever it may be, later.  Especially since all your data and such
    is on another drive.  If you use your computer for work and time
    critical projects, this is a major plus!
    In the case of a hard drive failure/replacement, copying the clone
    to the drive is the fastest way to get the system and all your settings
    back.
    Time Machine and incremental backups have a place as well.  It is best
    suited for "incremental" problems.  Examples are installing an upgrade to
    software that doesn't work or just don't plain like.  With Time Machine it
    is easy to just restore back to the point before the install.
    Something else I do is backup current project files to USB memory sticks.
    If you are using your computer for business, you can never have too many
    backups.  Coralllary 456 of Murphy's Law is the "number of backups that
    you need will be one more than what you have!"

  • DPM Express Full Backups Causing SQL timeouts

    Hi,
    We run a SQL 2008 R2 failover cluster on Server 2008 R2 SP1 connected to an Equallogic SAN. The SQL failover cluster is fully servicepacked and installed the latest cumulative updates. 
    We have all our databases in full recovery mode and protected by DPM 2012 SP1 with latest cumulative updates.
    The protection groups for SQL are configured to synchronise every 60mins and 1 express full backup every night. Every time the SQL express backups run the SQL server experiences timouts and end users report applications timing out. In the SQL server Application
    logs I see Event ID 833 numerous times, these only occur as the express full backups take place. Every time the express full backups run we see the same timeouts and event logged that I/O has taken longer than 15 seconds to complete:
    Log Name:      Application
    Source:        MSSQLSERVER
    Date:          01/04/2014 04:10:10
    Event ID:      833
    Task Category: Server
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      WDCSQL02.local
    Description:
    SQL Server has encountered 1 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [D:\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldf] in database [msdb] (4).  The OS file handle is 0x00000000000008F8.  The offset
    of the latest long I/O is: 0x000000042eae00
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSSQLSERVER" />
        <EventID Qualifiers="16384">833</EventID>
        <Level>4</Level>
        <Task>2</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-01T03:10:10.000000000Z" />
        <EventRecordID>14165629</EventRecordID>
        <Channel>Application</Channel>
        <Computer>WDCSQL02.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>1</Data>
        <Data>15</Data>
        <Data>D:\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldf</Data>
        <Data>msdb</Data>
        <Data>4</Data>
        <Data>00000000000008F8</Data>
        <Data>0x000000042eae00</Data>
        <Binary>410300000A0000000600000055004B00530051004C00000000000000</Binary>
      </EventData>
    </Event>
    I was under the impression that DPM SQL backups would remain online during the backup.
    Is this normal? 
    Any way to fix this issue?
    Thanks,
    Microsoft Partner

    Hi
    A copy backup will not truncate the logs but a full backup will and it will also stamp the database once it does a full backup.

  • Understanding replica volume and recovery point volume usage with SQL Express Full Backup

    I am running some trials to test DPM 2012 R2's suitability for protection a set of SQL Server databases and I am trying to understand what happens when I create a recovery point with Express Full Backup.
    The databases use simple recovery model and in the tests I have made so far I have loaded more data into the databases between recovery points since that will be a typical scenario - the databases will grow over time. The database files are set to autogrowth
    by 10%
    I have been looking at the change in USED space in the replica volume and in the recovery point volume after new recovery points and have a hard time understanding it.
    After the first test where data was loaded into the database and an Express Full Backup recovery point was created, I saw an increase in used space in the replica volume of 85 Gb and 29 GB in the recovery point volume. That is somewhat more than I think
    the database grew (I realize that should have monitored that, but did not), but anyway it is not completely far out.
    In the next test I did the same thing except I loaded twice as much data into the database.
    Here is where it gets odd: This causes zero increased usage in the replica volume and 33 GB increased use in the recovery point volume.
    I do not understand why the replica volume use increases with some recovery points and not with others.
    Note that I am only discussing increased usage in the volumes - not actual volume growth. The volumes are still their original size.
    I have been using 3-4 days on the test and the retention period is set to 12 days, so nothing should be expired yet.

    Hi,
    The replica volume usage represents the physical database file(s) size. The database file size on the replica should be equal to the database file size on the protected server.  This is both .mdf and .ldf files.  If when you load data
    into the database and you overwrite current tables versus adding new ones, or if there is white space in the database files and the load simply uses that white space, then there will not be any increase in the file size, so there will not be any increase
    in the replica used space.
    The recovery point volume will only contain delta changes applied to the database files.  As the changed blocks overwrite the files on the replica during express full backup, VSS (volsnap.sys) driver copies the old blocks about to be overwritten
    to the recovery point volume before allowing the change to be applied to the file on the replica. 
    Hope this helps explain what you are seeing.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • DPM is Only Allowing Express Full Backups For a Database Set to Full Recovery Model

    I have just transitioned my SQL backups from a server running SCDPM 2012 SP1 to a different server running 2012 R2.  All backups are working as expected except for one.  The database in question is supposed to be backuped up iwht a daily express
    full and hourly incremental schedule.  Although the database is set to full recovery model, the new DPM server says that recovery points will be created for that database based on the express full backup schedule.  I checked the logs on the old DPM
    server and the transaction log backups were working just fine up until I stopped protection the data source.  The SQL server is 2008 R2 SP2.  Other databases on the same server that are set to full recovery model are working just fine.  If we
    switch the recovery model of a database that isn't protected by DPM and then start the wizard to add it to the protection group it properly sees the difference when we flip the recovery model back and forth.  We also tried switching the recovery model
    on the failing database from full to simple and then back again, but to no avail.  Both the SQL server and the DPM server have been rebooted.  We have successfully set up transaction log backups in a SQL maintenance plan as a test, so we know the
    database is really using the full recovery model.
    Is there anything that someone knows about that can trigger a false positive for recovery model to backup type mismatches?

    I was having this same problem and appear to have found a solution.  I wanted hourly recovery points for all my SQL databases.  I was getting hourly for some but not for others.  The others were only getting a recovery point for the Full Express
    backup.  I noted that some of the databases were in simple recovery mode so I changed them to full recovery mode but that did not solve my problem.  I was still not getting the hourly recovery points.
    I found an article that seemed to indicate that SCDPM did not recognize any change in the recovery model once protection had started.  My database was in simple recovery mode when I added it (auto) to protection so even though I changed it to full recovery
    mode SCDPM continued to treat it as simple. 
    I tested this by 1) verify my db is set to full recovery, 2) back it up and restore it with a new name, 3) allow SCDPM to automatically add it to protection over night, 4) verify the next day I am getting hourly recovery points on the copy of the db. 
    It worked.  The original db was still only getting express full recovery points and the copy was getting hourly.  I suppose that if I don't want to restore a production db with an alternate name I will have to remove the db from protection, verify
    that it is set to full, and then add it back to protection.   I have not tested this yet.
    This is the article I read: 
    Article I read

  • SQL Server Backup Script

    Hello all, 
    not sure if I'm on the right thread but if not please do point me to the correct one.
    basically I have a script that run every end of the month to do a backup of a database (Detach, Mount a new, and move the database to a new
    location) bu since this month this is coming back with an error when running it. as far as i know nothing has changed since two or three months ago but this is not longer working. 
    Assistance is really needed. here.
    Here is my code but this is now coming back with
    Msg 5105, Level 16, State 4, Server PRITL1, Line 1 
    Device activation error. The physical file name 
    'E:\SQL\MSSQL\Data\Syslogd.mdf' may be incorrect.
    @echo off
    rem ***************************************************
    rem * This script automates the Syslog Backup process *
    rem ***************************************************
    echo 192.168.0.9 > report.txt
    date /t >> report.txt
    time /t >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Starting Syslog DB Maintenance" -server 192.168.0.26
    echo ******************************************* >> report.txt
    echo * Stopping the Kiwi Syslog Daemon Service * >> report.txt
    echo ******************************************* >> report.txt
    net stop "Kiwi Syslog Daemon"
    for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
    if /I "%%A" NEQ "RUNNING" (
    echo Stopping the Kiwi Syslog Daemon Service succeeded >> report.txt
    echo. >> report.txt
    ) else (
    echo -----!!! Stopping the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
    exit
    echo ********************************** >> report.txt
    echo * Detaching the Syslogd database * >> report.txt
    echo ********************************** >> report.txt
    ping 127.0.0.1
    ping 127.0.0.1
    osql -E -b -Q "master..sp_detach_db 'Syslogd'" >> report.txt
    set ReturnCode=%errorlevel%
    if %ReturnCode% equ 0 (
    echo Detaching the Syslogd database succeeded >> report.txt
    echo. >> report.txt
    ) else (
    echo. >> report.txt
    echo -----!!! Detaching the Syslogd database failed !!!----- >> report.txt
    echo. >> report.txt
    echo ********************************************* >> report.txt
    echo * Restarting the Kiwi Syslog Daemon service * >> report.txt
    echo ********************************************* >> report.txt
    net start "Kiwi Syslog Daemon"
    for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
    if /I "%%A" NEQ "STOPPED" (
    echo Restarting the Kiwi Syslog Daemon Service succeeded >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
    exit
    ) else (
    echo -----!!! Restarting the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
    exit
    echo *************************************************** >> report.txt
    echo * Moving the Syslogd database to the _Burn folder * >> report.txt
    echo *************************************************** >> report.txt
    Move E:\SQL\MSSQL\Data\Syslogd*.* \\server\Syslogs2\_Burn\
    set ReturnCode=%errorlevel%
    if %ReturnCode% equ 0 (
    echo Moving the Syslogd database to the _Burn folder succeeded >> report.txt
    echo. >> report.txt
    ) else (
    echo -----!!! Moving the Syslogd database to the _Burn folder failed !!!----- >> report.txt
    echo ************************************ >> report.txt
    echo * Reattaching the Syslogd database * >> report.txt
    echo ************************************ >> report.txt
    osql -E -b -Q "master..sp_attach_db 'Syslogd','E:\SQL\MSSQL\Data\Syslogd.mdf','E:\SQL\MSSQL\Data\Syslogd_log.ldf'" >> report.txt
    echo. >> report.txt
    echo ********************************************* >> report.txt
    echo * Restarting the Kiwi Syslog Daemon service * >> report.txt
    echo ********************************************* >> report.txt
    net start "Kiwi Syslog Daemon"
    for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
    if /I "%%A" NEQ "STOPPED" (
    echo Restarting the Kiwi Syslog Daemon Service succeeded >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
    exit
    ) else (
    echo -----!!! Restarting the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
    exit
    echo **************************************** >> report.txt
    echo * Restoring the blank Syslogd database * >> report.txt
    echo **************************************** >> report.txt
    osql -E -b -Q "Restore Database Syslogd from disk = 'E:\SQL\MSSQL\Backup\SyslogD_Blank.bak'" >> report.txt
    set ReturnCode=%errorlevel%
    if %ReturnCode% equ 0 (
    echo Restoring the blank Syslogd database succeeded >> report.txt
    echo. >> report.txt
    ) else (
    echo. >> report.txt
    echo -----!!! Restoring the blank Syslogd database failed !!!----- >> report.txt
    echo ************************************ >> report.txt
    echo * Moving back the Syslogd database * >> report.txt
    echo ************************************ >> report.txt
    Move \\server\Syslogs2\_Burn\Syslogd*.* E:\SQL\MSSQL\Data
    echo ************************************ >> report.txt
    echo * Reattaching the Syslogd database * >> report.txt
    echo ************************************ >> report.txt
    osql -E -b -Q "master..sp_attach_db 'Syslogd','E:\SQL\MSSQL\Data\Syslogd.mdf','E:\SQL\MSSQL\Data\Syslogd_log.ldf'" >> report.txt
    echo. >> report.txt
    echo ********************************************* >> report.txt
    echo * Restarting the Kiwi Syslog Daemon service * >> report.txt
    echo ********************************************* >> report.txt
    net start "Kiwi Syslog Daemon"
    for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
    if /I "%%A" NEQ "STOPPED" (
    echo Restarting the Kiwi Syslog Daemon Service succeeded >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
    exit
    ) else (
    echo -----!!! Restarting the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
    exit
    echo ******************************************* >> report.txt
    echo * Starting the Kiwi Syslog Daemon service * >> report.txt
    echo ******************************************* >> report.txt
    net start "Kiwi Syslog Daemon"
    for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
    if /I "%%A" NEQ "STOPPED" (
    echo Starting the Kiwi Syslog Daemon Service succeeded >> report.txt
    ) else (
    echo -----!!! Starting the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
    exit
    echo ************************************** >> report.txt
    echo * Compressing the Syslog backup file * >> report.txt
    echo ************************************** >> report.txt
    "C:\program files\winrar\rar.exe" M -df -ep -ag -m5 \\server\Syslogs2\_Burn\PR-Syslog \\server\Syslogs2\_Burn\syslogd*.* >> report.txt
    echo. >> report.txt
    set ReturnCode=%errorlevel%
    if %ReturnCode% equ 0 (
    echo Compressing the Syslog backup file succeeded >> report.txt
    echo. >> report.txt
    ) else (
    echo -----!!! Compressing the Syslog backup file failed !!!----- >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
    exit
    echo **************************** >> report.txt
    echo * Completed * >> report.txt
    echo * Ready for burning! * >> report.txt
    echo * Check Archived files on * >> report.txt
    echo * \\\server\Syslogs2 * >> report.txt
    echo *************************** >> report.txt
    echo. >> report.txt
    date /t >> report.txt
    time /t >> report.txt
    blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report - Ready to Burn" -server 192.168.0.26

    Bill thanks for that, 
    this is actually an SQL express edition and not a full SQL server.
    Environment:
    Databases will be detached, copied to from  E:\SQL\MSSQL\Data\ to a shared location and then mount black database foles .MDF
    and .LDF files to the SQL express and then restart the kiwi syslog applications.
     why not powershell? well I've inherited this and machine is a 2003 server and we do not install PS on all machines except
    if they are needed.
    SQLServer Express comes with tools to backup the database.  Post is SQLServer forum to learn how to set up and use SQLExpress tools.
    SQLExpress has support in PowerShell for managing the  server.
    Here si on emethod posted by Microsoft that is useful.  Methods using the scheduler and other tools are available.
    http://support.microsoft.com/kb/2019698
    ¯\_(ツ)_/¯

  • ACS 5.3.0.40 On-demand Full Backup failed.

    Hi,
    I have ACS 5.3.0.40 Primary Secondary Authenticators , of which the Scheduled backup has stopped.
    When checked the :
    Monitoring Configuration >
    System Operations >
    Data Management >
    Removal and Backup
    > Incremental Backup , it had changed to OFF mode. without any reason.
    The same was observed earlier too.
    I have made the
    Incremental Backup to ON and intiated the
    View Full Database Backup Now. But it wasn't successful and reported an Error:
    FullBackupOnDemand-Job Incremental Backup Utility System Fri Dec 28 11:56:57 IST 2012 Incremental Backup Failed: CARS_APP_BACKUP_FAILED : -404 : Application backup error Failed
    Later i did the acs stop/start  "view-jobmanager" and  initiated the On-demand Full Backup , but no luck, same error reported this time too.
    Has any one faced similar type of error /problem reported , please let me know the solution.
    Thanks & Regards.

    One other thing; if this does end up being an issue with disk space it is worth considering patch 5.3.0.40.6 or later since improves database management processes
    This cumulative patch includes fixes/enhancements related to disk management to avoid following issue
    CSCtz24314: ACS 5.x *still* runs out of disk space
    and also fix for
    CSCua51804: View backup fails   even when there is space in disk
    Following is taken from the readme for this patch
       The Monitoring and Reporting database can increase when as records are collected. There are two mechanisms to reduce this size and prevent it from exceeding the maximum limit.
    1. Purge: In this mechanism the data will be purged based on the configured data retention period or upon reaching the upper limit of the database.
    2. Compress: This mechanism frees up unused space in the database without deleting any records.
    Previously the compress option could only be run manually. In ACS 5.3 Patch 6 there are enhancements so it will run daily at a predefined time, automatically when specific criteria are met. Similarly by default purge job runs every day at 4 AM. In Patch 6 new option provided to do on demand purge as well.
    The new solution is to perform the Monitoring and Reporting database compress automatically.
    2.       New GUI option is provided to enable the Monitoring and Reporting database compress to run on every day at 5 AM. This can be configured under GUI Monitoring And Configuration -> System Operations -> Data Management -> Removal and Backup
    3.       Changed the upper and lower limit of purging of Monitoring and Reporting data. This is to make sure at lower limit itself ACS has enough space to take the backup. The maximum size allocated for monitoring and reporting database is 42% of /opt( 139 GB). The lower Limit at which ACS purges the data by taking the backup is 60% of maximum size Monitoring and Reporting database (83.42 GB). The upper limit at which ACS purges the data without taking backup is 80% of maximum size Monitoring and Reporting database (111.22 GB).
    4. The acsview-database compress operation stops all services till 5.3 patch 5 , now only Monitoring and Reporting related services are stopped during this operation.
    5. Provided “On demand purge” option in Monitoring and Reporting GUI. This option will not try to take any backup, it will purge the data based on window size configured.
    6. Even if the “Enable ACS View Database compress” option is not enabled in GUI then also automatic view database compress will be triggered if the physical size of Monitoring and Reporting database reached to the upper limit of its size.
    7. This automatic database compress takes place only when the “LogRecovery” feature is enabled, this is to make sure that the logging which happens during this operation will be recovered once this operation is completed. ACS generates alert when there is a need to do automatic database compress and also to enable this feature.
    8. Before enabling “LogRecovery” feature configure the Logging Categories in such way that only mandatory data to log into Local Log Target and Remote Log Target as Log collector under System Administration > ... > Configuration > Log Configuration
    This “LogRecovery” feature can recover the logs only if the logs are present under local log target.
    9       This automatic database compress operation also performed only when the difference between actual and physical size of Monitoring and Reporting database size is > 50GB.
    10 The new CLI “acsview” with option “show-dbsize” is provided to show the actual and physical size of the Monitoring and Reporting database. This is available in “acs-config” mode.
               acsview     show-dbsize     Show the actual and physical size of View DB and transaction log file

  • Touch screen stopped working. Is there anyway to force a full backup of the iPhone without typing in my passcode lock or is there anyway to force it to connect to a WiFi network so the phone can backup to iCloud??

    Hello all, I could use some help with my iPhone 4, I hope this is the best place to ask!
    The Problem:
    I want to do a full backup of my iphone to either itunes or to icloud. Unfortunately the iphone got wet and isn’t working properly. The phone turns on and still works, but the touch screen no longer works. I have a passcode lock on the phone so iTunes will not allow me to backup it up until I type in the passcode (which I cannot physically do). WiFi had been turned off before it got wet so it won’t connect to any known WiFi networks either to backup automatically to iCloud.
    What happened:
    I had been travelling for 6 months and went tubing on a river with my iphone in a dry bag. Unfortunately the dry bag failed and filled with water ruining my iphone.
    What I’d like to do:
    It’s an old phone and I was planning on buying a new iPhone anyway. I would love to do a full backup to either iCloud or to my computer so when I get a new iPhone I don’t lose anything. I’ve already connected it to my PC and downloaded all the photos and videos off the phone so at least I haven’t lost that, but I would like to be able to recover all the text messages, WhatsApp messages and notes I had created during my 6 months of travel.
    The last time it was backed up to my pc or to icloud was in April, so there are 6 months worth of very meaningful data I would love to keep to remind me of my travels!
    Is there anyway to force a full backup of the iPhone without typing in my passcode lock or is there anyway to force it to connect to a WiFi network so the phone can backup to iCloud??
    iTunes recognizes the phone just now and I tried upgrading the phone to iOS7 in the hopes that it would first backup and then upgrade. Unfortunately all that happened is the phone upgraded to iOS7, but it didn’t backup to iTunes. Now the phone is stuck at the iOS7 welcome screen and I can’t do anything else with it.
    Any ideas or tips would be welcome!
    NOTE: This is NOT a jailbroken iPhone.

    If there is no other way around this, is there anyway to completely wipe the phone then??
    The Apple store agreed to give me a new iPhone 4 as a warranty replacement for $150 (I travel a lot and I have a factory unlocked phone, so this is still worth it for me).  But before I trade it in, I would like to make sure all my data is backed up on the device first.
    When I try and restore the phone now on iTunes, it says I have to turn off Find My iPhone on the phone first before I can restore it.  Now since I can't use the screen I can't really do that.
    So how do I completely wipe the iPhone???
    Thanks!

  • Time Machine repeatedly does full backups, including FileVault while logged in

    So let me preface this - for months I'd hoped for a way that Time Machine could backup my FileVault encrypted account without logging out.  Last night Snow Leopard spontaneously started doing this.  I know many may think that I'm looking a gift horse in the mouth, but read further and hopefully someone can help me make sense of this.
    Last night I attached my external 1TB USB hard drove to my 15" MBP (spring 2010 model) running OS X 10.6.7.  It started doing a Time Machine backup automatically, as usual.  Since I was logged into my account that uses FileVault (a massive home folder - 220GB) I expected a fast backup of things only outside my home folder.  As i looked at the details, however, i quickly realized that it was backing up all 270GB of data on my hard drive - including my FileVault account while still logged in! 
    At first i thought i just got lucky - i'd been craving this feature for years and it just happened to me without even doing anything.  Curious guy that i am, i logged out of my acct with my USB drive still attached to see what would happen.  After FileVault cleared out space in my home folder, it did _another_ backup, that took about 10 minutes to complete.  This seemed strange so i logged back in and started another backup manually.  To my utter shock, it started doing the whole 270GB over again! 
    I even cleared out my TM drive, erased, reformatted, checked permissions, etc etc and did the same on my system drive, hoping that it was just a matter of broken permissions.  No change.
    So there's two things going on here and i'm pretty concerned about both:
    1) Why is TM backing up my entire encrypted home folder while i'm still logged in??? Apple has clearly designed TM and FV to NOT work this way for data integrity reasons and the fact that it's happening has me freaked out a bit over the reliability of my backups.
    2) Why is TM doing full backups after each time i login to my account?  If i stay logged in, it appears to only do incremental (normal) backups but if i logout, then re-login and allow the hour to pass and let a backup start on its own, it starts the whole 270GB again.
    I'm getting to the point of wiping the system and starting from scratch but since i presently live in a country with no Apple store and extremely poor internet access, that prospect horrifies me
    any ideas?
    many thanks,
    -Tim

    Thanks for the input Pondini -
    I tried deleting the file as mentioned in #A4 and it still had the problem.  Last weekend i finally got a brand new hard drive and reinstalled OSX 10.6.3 from scratch, then promptly applied the 10.6.7 combo update.  I purposely chose to NOT import my old user from backup and instead set up everything again manually (royal pain, but the only way i could be sure that i wouldn't bring the problem with me).  Today i whipped out my TimeMachine drive and set it up for backups.  I crossed my fingers and it AGAIN started backing up all 250+GB of my system from within my FileVault protected account. 
    My wife's MBP is still running 10.6.4 and i'm beginning to wonder if his is an issue with 10.6.7 since i'm relatively certain i didn't experience this before that upgrade. 
    I've checked my wife's exclusions under Options and her home folder is NOT in that list, yet her TM is not attempting to backup everything until she logs out of her FV acct.
    In response to Linc Davis, _yes_ it was backing up my info into a sparsebundle file, not just the raw unencrypted data, which is extremely strange.
    If i DO add my home folder to the exclude list, will it still be backed up when i log out?
    At this point, i'm thinking my next steps are:
    1) try a different TM backup drive, even though i've wiped and checked my current drive numerous times
    2) downgrade to an older version of Snow Leopard to see if 10.6.7 is the culprit
    Any other ideas?

  • Can I create a full backup on google drive by moving my user folders to Google Drive Folder?

    Can I create a full backup on google drive? Google suggested I simply move my folders (Pictures, Music, Downloads, Documents, etc) into the google drive folder. But these seem to be automated files involved with Mac's organization... will this create problems for my computer? Ie. if I import new photos, or download music, will my computer know where to put it if its in google drive?
    If this is a problem, how else could I possibly create a full backup of personal data on google drive (or any similar syncing service, for that matter).  iCloud is prohibitively expensive, and programs like crash plan and carbonate run so slowly and bog down my computer so much that they are not worth it. Google drive seems simplest and most competitive in price, but I am worried about moving my folders.
    Help?

    Google Drive also installs a client--a google drive folder on my hard drive that is programmed to sync changes automatically to the cloud--that allows me to drag and drop.  I suppose my original concern was about dragging files from my hard drive (such as "pictures" that would contain my iPhoto library, etc) into it.  Would that mess up Mac's internal organizational system? If I drag and drop my pictures folder, music folder, etc. into the google drive client folder in Finder, will those applications still function correctly?  Will my mac still be able to figure out where to put photos I import from my camera, etc?
    I am only as tech savvy as I have to be to survive professionally as a traveling teacher, so I am looking for something pretty straightforward that will free up some of my brain waves for other activities, rather than remembering which folders I have made changes in and need to sync.

  • Error restoring SQL 2008 R2 DB into SQL 2012: BACKUP LOG cannot be performed because there is no current database backup.

    I have a SQL 2008 R2 database that I am trying to move to 2012.  Made a full backup of the database in 2008 R2.  Recovery model is Simple, compatibility level is 2008  Went to 2012, created a dummy database, did Tasks--> Restore -->
    Database , located the backup file, selected it, changed the file locations and tried to restore the backup (with overwrite option), got the following error:
    BACKUP LOG cannot be performed because there is no current database backup.
    This is a simple task that has always worked in 2008 R2.  Does anyone know what the problem is and a possible solution?
    Thanks

    Hi,
    This error occurs when the database recovery model has been changed to Simple and/or the recovery model has been changed back to Full but a full backup has not been performed since the change.
      If a full backup has been performed, the following conditions will require that another full backup be taken:
     · The recovery model had been changed without taking a full backup
     · A SQL maintenance plan task had changed the recovery model (reindexing can cause this)
     · A backup specifying TRUNCATE_ONLY had been run on the database
     · The database was detached from another server and attached to the current server
    Additionally, if we take full database backup after the Database is set to readonly, Then transaction log backup we will end up with this error. This is expected behavior. I have list an example within the link below.
    Please check above conditions and fix your issue, if you have any concern, please let me know.
    Example:
    BACKUP LOG cannot be performed because there is no current database backup.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b5c36e60-836f-4c9e-b9d7-3fb3f3ee4d37/backup-log-cannot-be-performed-because-there-is-no-current-database-backup
    Thanks
    Candy Zhou

  • How to make a full backup of my iPad without using iTunes

    I need to make a full backup of my iPad.  I am using the Vudu app and have many movies downloaded to my iPad.  I have performed a backup of my iPad from iTunes onto my Macbook Pro.  The mobile backup files on my laptop are not nearly big enough for the 20+ movies (at lease 1/2 to1 GB each).   Because of this I do not believe iTunes has made a full backup including the movies.  I want to avoid having to re-download all the movies if/when the iPad drive fails.  I want a complete backup such as Time Machine or using some other external hard drive or app on my MacBook Pro.
    I bought a Seagate Wireless Plus 1TB Mobile Cloud Storage with Built-in WiFi Streaming (STCK1000100) external hard drive and installed the Seagate Media App.  I can, via the app on the iPad, see the device and copy to and from it.  But, it only allows access to music, movies in iTunes (not any movies in Vudu), and things like documents on my iPad.  It does not allow access to all the files inclding system files stored on the iPad.  I also tried another Seagate non wireless external drive that I connected directly to the iPad but the Seagate Media app does not communicate with or recognize the device from the iPad.
    I also bought DiskAid software that supposedly will make a complete backup of an App on a mobile device and installed it on my laptop.  I was able to make a complete backup of the Vudu app from the iPad onto my laptop, but in a test could not restore it to my iPad.  The backup file, though, was the right size, about 26 GB.  The DiskAid techs are looking into that.  I was able to use DiskAid to backup another app in a test (Hertz).  That app made a backup of the Hertz app onto my laptop, I deleted the app on my iPad, then I was able to restore it.  But right now the restore option is not working for Vudu.
    Another option would be to copy the movie files off of the iPad onto my Laptop, but the iPad does not appear in the finder window on the Laptop.
    I have about decided my MacBook Pro laptop will have to be the main repository for all the downloaded movies, since I can make a Time Machine backup of everything. 
    It is very frustrating to not be able to make a full backup of everything on my iPad.
    Anyone else have any ideas?   Apple - when are you going to provide a way to make a full backup of an iPad?

    I recommend Super Duper as well. I use it batch mode to automatically back up my iMAC every night at 2 am. It's saved my life a couple of times- once my disk crashed (under warranty)and what could have been a disaster (1000's of irreplaceable photos) was a 2 day inconvenience.
    Now and then I boot up from my backup on my firewire drive, wipe, check and reformat my internal hard disk, copy back all my files and I'm good to go

  • RMAN - Is it possible to run Archivelog Backup while Full backup is running

    Hi,
    Our full database backups runs daily in the night. It fails whenever an archivelog backup kicks off. This happens on our big databases where backups run for long hours and we have to run the archivelog backup to backup/delete the archivelogs to maintain the archivelog destinations.
    Is there any way to run these 2 backups in parallel without both failing. We use RMAN catalog to take backups, and we get errors when resyncing of catalog happens during backup.
    We get these errors:-
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03008: error while performing automatic resync of recovery catalog
    RMAN-20033: control file sequence# too low
    and sometimes
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03008: error while performing automatic resync of recovery catalog
    ORA-00230: operation disallowed: snapshot control file enqueue unavailable
    Our archivelog destinations are not big enough to hold more than 1 days of logs and we have backups that runs for 30 hours. We have to backup and delete the archivelogs in between, while the full backup is running and right now its failing with able errors. Is there any solution or workaround I can opt for in this scenario.
    Any help is Highly appreciated. Thanks in advance for the Help.
    Thanks,
    Vish

    Your primary issue is SPACE. Allocate sufficient space to keep at a MINIMUM 4 days worth of archivelogs ONLINE.
    Use multiple channels
    you will need to test your system to see where you get optimal throughput.
    Use compression
    you will need to test your system to see where you get optimal throughput.
    Use disk-disk backups (and sweep to tape later)...
    If RAC, 11gR2 - consider ACFS (stored in ASM as well as OS accessible).
    Anything less and you could be issuing the command "alter dba update resume".
    Database management is not something that should be approached lightly... If you don't have the resources - maybe you need to trim the data or if the business requires that data volume, then the business needs to allocate sufficient resources to stay in business. Catastrophic database failures and the businesses ignorance on the importance of their data is a huge contributor business failures. At one point (not sure of the latest figures) if a business suffered such a data loss, they rarely stayed in business for more than a year.
    Storage is MUCH cheaper and the proper configuration and allocation of those resources than a company failure.
    onedbguru, CISSP.

  • Restore one full backup(need to move), 1 differential backup,2 transaction log backup

    Is following script correct? I don't need to add "move" when do restore differential, log later. Correct?
    RESTORE DATABASE AdventureWorks FROM DISK = 'C:\AdventureWorks.BAK'
    WITH
    MOVE
    'Adventureworks_DB'
    TO
    'C:\test\Adventureworks.mdf',
    MOVE
    'AdventureWorks_Log'
    TO
    'C:\Adventureworks_Log.ldf',
    WITH NORECOVERY
    GO
    RESTORE DATABASE AdventureWorks FROM DISK = 'C:\AdventureWorks.DIF'
    WITH NORECOVERY
    GO
    RESTORE LOG AdventureWorks FROM DISK = 'C:\AdventureWorks.TRN'
    WITH NORECOVERY
    GO
    RESTORE LOG AdventureWorks FROM DISK = 'C:\AdventureWorks2.TRN'
    WITH RECOVERY
    GO

    Yes, that would be fine. It will work without move filename as well. You can add replace parameter incase.
    Also, make sure to check the mentioned path they must exist and SQL is able to access
    Before running the restore run below to check the backup file path:
    Corrected the script with needed only once in full backup restore
    Restore filelistonly from disk= 'C:\AdventureWorks.BAK'
    RESTORE DATABASE AdventureWorks FROM DISK = 'C:\AdventureWorks.BAK'
    WITH MOVE'Adventureworks_DB'TO'C:\test\Adventureworks.mdf',
    MOVE'AdventureWorks_Log'TO'C:\Adventureworks_Log.ldf',
    NORECOVERY, replace
    GO
    RESTORE DATABASE AdventureWorks FROM DISK = 'C:\AdventureWorks.DIF'
    WITH NORECOVERY, replace
    GO
    RESTORE LOG AdventureWorks FROM DISK = 'C:\AdventureWorks.TRN'
    WITH NORECOVERY, replace
    GO
    RESTORE LOG AdventureWorks FROM DISK = 'C:\AdventureWorks2.TRN'
    WITH RECOVERY, replace
    GO
    Please let us know if you face any issue
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • Recover from full backup

    Hi,
    I want to recover a tablespace from a RMAN full backup. Now the related schema has many truncated objects (in a bach process), so normal tablespace restore, recovery won't help. Have to go for TSPITR. But the time I can't fix. Is there any other way to recover the tablespace other than point-in-time recovery ?

    Hi Hemant,
    When I run the TSIPTR recovery I am getting error,
    RMAN> run {
    ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
    SEND 'NB_ORA_CLIENT=UBIHQ,NB_ORA_SERV=UBIHQ';
    RECOVER TABLESPACE PD811T UNTIL TIME "to_date('02-JUL-2010 23:00:00','DD-MON-YYYY HH24:MI:SS')";
    auxiliary destination '/tmp';
    }2> 3> 4> 5>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "auxiliary": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, copy, convert, crosscheck, configure, duplicate, debug, delete, execute, endinline, flashback, host, mount, open, plsql, recover, release, replicate, report, restore, resync, }, set, setlimit, sql, switch, startup, shutdown, send, show, transport, validate"
    RMAN-01007: at line 5 column 1 file: standard input

Maybe you are looking for

  • Subtraction in the pricing procedure.

    Hello Friends,              I have requirement as follows: I have two steps in the pricing procedure. One has a condition type and the other does not. Now my requirement is to subtract the condition price of step 1 from the condition price of step 2

  • My MacBook Pro is tooooooo hot

    Hello everybody! I've a Macbook Pro since almost 1 year and it's too warm... Almost always it's on 70ºC or more and it's not necessary to be working with complexes programs... It's too hard work with the computer in spring and summer... what can i do

  • Internal Order - AUC Issue

    Hi, I have created one internal order for AUC purpose.When i call Asset Under Construction option from the Internal order screen (KO02) it is taking me to AS01 asset creation screen.But here they system is taking the AUC asset class 4001 by default i

  • Query regarding refreshing grid data when returned from  a different Task Flow

    Hi Experts, JDEV version used is :11.1.1.5 Our application uses dynamic UI shell tabs. Whenever the user logs in he is taken to the TAB A. From TAB A, user navigates to TAB B. The TAB B has a GRID B(table with some records ). Column A on TAB B has a

  • Connect by prior performance

    In our application, we have a lot of 'trees' in our data (parent/child relationships within a table). We rely heavily on 'connect by prior' to search through the trees, to find for example values that are defined in one of the parents ('inheritance')