Recommended Posts

I'm wondering if I have all bases covered, so how do you backup your repos?

I have the following batch script running on a scheduled task, which creates a 7-zip file like this:

post-176093-0-11120500-1357446480.png

Looking for any input - thanks a lot! :)


@echo off
echo Backing up SVN... do NOT close!
echo.
echo.
for /f "tokens=1-4 delims=/ " %%a in ('date /t') do (set bdate=%%c-%%a-%%b)
for /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set btime=%%a-%%b)
cd %temp%
rd /s /q svnbackup >nul 2>&1
md svnbackup
cd svnbackup
md certs
md conf
net stop VisualSVNServer >nul 2>&1
svnadmin dump --deltas --quiet S:/Customers > Customers.dump
svnadmin dump --deltas --quiet S:/Internal > Internal.dump
net start VisualSVNServer >nul 2>&1
for %%I in (S:\authz S:\authz-windows S:\htpasswd C:\INTERNAL\SVN\Backup.bat) do copy %%I . >nul
copy "%VISUALSVN_SERVER%\certs\*" certs >nul
copy "%VISUALSVN_SERVER%\conf\*" conf >nul
"%ProgramFiles%\7-Zip\7z.exe" a -mx9 %bdate%_%btime%.7z *
move *.7z C:\Users\DB\Dropbox\Backups\SVN >nul
cd ..
rd /s /q svnbackup >nul 2>&1
[/CODE]

  • Like 1
Link to comment
https://www.neowin.net/forum/topic/1129356-how-do-you-backup-svn/
Share on other sites

  On 06/01/2013 at 04:28, -Alex- said:
I'm wondering if I have all bases covered, so how do you backup your repos? I have the following batch script running on a scheduled task, which creates a 7-zip file like this: post-176093-0-11120500-1357446480.png Looking for any input - thanks a lot! :)
 @echo off echo Backing up SVN... do NOT close! echo. echo. for /f "tokens=1-4 delims=/ " %%a in ('date /t') do (set bdate=%%c-%%a-%%b) for /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set btime=%%a-%%b) cd %temp% rd /s /q svnbackup >nul 2>&1 md svnbackup cd svnbackup md certs md conf net stop VisualSVNServer >nul 2>&1 svnadmin dump --deltas --quiet S:/Customers > Customers.dump svnadmin dump --deltas --quiet S:/Internal > Internal.dump net start VisualSVNServer >nul 2>&1 for %%I in (S:\authz S:\authz-windows S:\htpasswd C:\INTERNAL\SVN\Backup.bat) do copy %%I . >nul copy "%VISUALSVN_SERVER%\certs\*" certs >nul copy "%VISUALSVN_SERVER%\conf\*" conf >nul "%ProgramFiles%\7-Zip\7z.exe" a -mx9 %bdate%_%btime%.7z * move *.7z C:\Users\DB\Dropbox\Backups\SVN >nul cd .. rd /s /q svnbackup >nul 2>&1 [/CODE]

  On 07/01/2013 at 02:02, Kamil Kowalski said:
<snip>

Not exactly the answer I was looking for, but thanks for the effort, and welcome to Neowin! :)

  On 07/01/2013 at 02:15, DonC said:

I just use a scheduled svnsync to back mine up to another computer.

Thanks Don. The only off-site service I have to backup to though is Dropbox.

Just use svnsync to copy the files to your dropbox folder. Or have your script place your 7z files in the dropbox folder - and then dropbox will sync them to the cloud and there you go a backup and DR all at the same time.

  On 07/01/2013 at 17:51, BudMan said:

Just use svnsync to copy the files to your dropbox folder. Or have your script place your 7z files in the dropbox folder - and then dropbox will sync them to the cloud and there you go a backup and DR all at the same time.

The latter of your ideas is exactly what's going on right now ;)

move *.7z C:\Users\DB\Dropbox\Backups\SVN &gt;nul

Tell me though, when I was deciding which route to go down, it was a choice between hotcopy and dump, since these create a backup file. From a quick scan of Google, svnsync creates a replica. Which is easier to restore? Just got a VM installed to test out a restore using the file the batch script above makes... when I get a chance.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I have two Tab S9 FEs and two Tab A9+ tablets. While the Tab A9+ is not as powerful as the Tab S9 FE, I like the much cheaper Tab A9+ better. It has a slightly more Landscapish display for those who use the Landscape mode. I haven't noticed much difference in the speakers. The S9 FE does better on battery drainage at around 7% an hour vs 9% an hour for the Tab A9+. I don't use Fast Charging because it is not good for the battery and I haven't really compared the charge time between the two. One thing for sure is the Tab A9+ does a lot better at handling memory under Android 15 UI 7 than it did under Android 14, UI 6.1. The Tab A10+ has yet to be released and as I understand it, it has major chipset and charging upgrades. It expected to be released late this summer or early fall, but with all Samsung hardware releases, I imagine this one will be same where the U.S. is not among the early markets to see a new device.
    • As such, about 30,000 government sector computers would be switching by 2027 or so. I have been there and done it though probably not with as many as 30,000 computers. i worked on a Bank of America conversion project and it was a mess, a complete mess. Computer system conversions are never as easy as they sound in the media or even the Corporate Boardroom or Government high-up offfices. One may ask, what MIcrosoft hardware and sofware the government of Denmark is using in addition to desktop computers and Office?. One thing for sure. We know that they aren't using Windows 10 Mobile.
    • WTF? I can't believe you are surprised it's not an option or it should be. 
    • Yes, if the PCs aren’t upgraded, they’ll lack features like TPM and remain vulnerable to driver and hardware-level exploits. That includes CPU flaws, RAM vulnerabilities, boot and BIOS attacks, and so on. Realistically, there should have been a steady programme of hardware refreshes rather than allowing systems to age well past their practical and secure lifespan. Are we seriously entertaining the idea of running Linux on machines that are over a decade old as a long-term solution instead of upgrading? Would you entrust your financial data or medical records to a box from the early 2000s, with Windows XP removed and Linux installed in its place? Performance degradation is not just an inconvenience. It affects productivity. Slow machines cost time, and time costs money. Security flaws do too. Hardware and software upgrades should be part of a rolling, responsible IT strategy. They should not be treated as an afterthought. This kind of complacency is precisely the issue we’ve seen before. Just look at how that played out in the UK. We readily replace construction tools such as drills, saws, and other equipment on a regular basis, and many of those cost more than a standard desktop PC. Yet when it comes to computers, we’re still stuck in the mindset of "if it isn’t broken, don’t fix it." Just because something powers on doesn’t mean it is fit for purpose. The horse and cart did the job at one point too, but that didn’t mean it was wise to stick with it when something better came along.
    • Freshly released Samsung Galaxy Tab S10 FE is already discounted by Fiza Ali The Samsung Galaxy Tab S10 FE is already available at a discount, just two months after its debut, so you may want to check it out. The device is powered by the Samsung Exynos 1580 processor and equipped with 12GB of RAM and 256GB of internal storage, which can be expanded by up to 1TB via microSD. It features a 10.9‑inch LCD display with a resolution of 2,304 x 1,440 pixels and a 90 Hz refresh rate. Photography and video calls are handled by a 13MP rear camera and a 12MP ultra‑wide front‑facing camera. The device further includes dual AKG‑tuned speakers for immersive audio. The Galaxy Tab S10 FE offers Sub‑6 5G, dual‑band Wi‑Fi 6 with Wi‑Fi Direct support, and Bluetooth 5.3 for low‑latency wireless connections. Moreover, it incorporates S Pen functionality with handwriting assist, a Circle to Search feature for instant Google look‑ups, and Math Solver for converting handwritten equations into editable text and step‑by‑step solutions. The tablet comes pre‑loaded with a suite of creative and productivity apps, including LumaFusion, GoodNotes, Clip Studio Paint, Noteshelf, Sketchbook and PicsArt. The Galaxy Tab S10 FE is water‑resistant, safeguarding against spills, splashes, and brief immersion, and includes a dedicated AI hot‑key on its keyboard for quick access to on‑device artificial intelligence tools. Finally, the tablet houses an 8,000 mAh lithium‑ion battery (29.95Wh) that is said to deliver up to 20 hours of continuous use and supports Super Fast Charging. Samsung Galaxy Tab S10 FE: $519.99 (Amazon US) 9% off This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
  • Recent Achievements

    • Explorer
      Case_f went up a rank
      Explorer
    • Conversation Starter
      Jamie Smith earned a badge
      Conversation Starter
    • First Post
      NeoToad777 earned a badge
      First Post
    • Week One Done
      JoeV earned a badge
      Week One Done
    • One Month Later
      VAT Services in UAE earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      549
    2. 2
      ATLien_0
      240
    3. 3
      +Edouard
      160
    4. 4
      +FloatingFatMan
      147
    5. 5
      Michael Scrip
      112
  • Tell a friend

    Love Neowin? Tell a friend!