November 2, 2017 at 8:40 am
Hi, Guys i have a one question. I have a db where backup is 50 gb.Is it possible to backup only data for the last 10 days and the backup will be 2,3 gb. Thank you 🙂
November 2, 2017 at 8:52 am
iseedeadpeople - Thursday, November 2, 2017 8:40 AMHi, Guys i have a one question. I have a db where backup is 50 gb.Is it possible to backup only data for the last 10 days and the backup will be 2,3 gb. Thank you 🙂
No, but you could accomplish that in a different way, please keep in mind you might not have all the benefits of a real SQL Backup.
1. bcp table content out with a where clause on your date. Caution, this is not a backup, but a data dump. (and actually bad advice)
2. Full backup once a week, and differentials daily with transaction log backups in between.
3. Depending on your version and license of SQL, you can use Backup compression, and depending on you data, could see a significant decrease in backup size.
4. Implement an archiving strategy to keep you live database smaller, resulting in smaller backups.
You have some options, unsure of your exact reason and requirements, so the above are just options that come to mind, not necessarily fit for your purpose.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle
November 2, 2017 at 8:52 am
iseedeadpeople - Thursday, November 2, 2017 8:40 AMHi, Guys i have a one question. I have a db where backup is 50 gb.Is it possible to backup only data for the last 10 days and the backup will be 2,3 gb. Thank you 🙂
No I'm afraid not. You could take a differential backup which would backup everything since the last full backup but you would still need the full backup to perform a restore.
Thanks
November 2, 2017 at 8:54 am
Thanks Henrico Bekker, i will chek this bcp utillity 🙂
November 2, 2017 at 8:54 am
iseedeadpeople - Thursday, November 2, 2017 8:40 AMHi, Guys i have a one question. I have a db where backup is 50 gb.Is it possible to backup only data for the last 10 days and the backup will be 2,3 gb. Thank you 🙂
Short answer?
No.
Long answer?
Sure, take a full backup on day 1, then differential backups each day. Of course, you still have to take at least one 50GB backup, and really if you go this route I'd lean towards a Full backup each week (at 50GB each time unless the DB has grown in the interim,) and if it's in Full Recovery you need to factor in doing Transaction Log backups as well.
November 2, 2017 at 8:58 am
iseedeadpeople - Thursday, November 2, 2017 8:54 AMThanks Henrico Bekker, i will chek this bcp utillity 🙂
Please note what he said about the BCP method:
Caution, this is not a backup, but a data dump. (and actually bad advice)Caution, this is not a backup, but a data dump. (and actually bad advice)
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply