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

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]

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.

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 >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

    • Meta launches new AI glasses in 26 styles and Muse Spark multimodal capabilties by Pradeep Viswanathan Meta today announced a new line of Meta Glasses in partnership with EssilorLuxottica. The new AI glasses build on the company’s existing smart glasses portfolio, which is sold under the Ray-Ban Meta and Oakley Meta brands. The new Meta Glasses start at just $299, are compatible with prescription lenses, and will be available in 26 styles across different colors, lenses, and frames. At launch, Meta Glasses will be available in three frame styles. The Meta Adventurer features a clean rectangular design and comes in Standard and Large sizes. The Meta Fury is a bolder frame for users who want a stronger look. Meta Glasses by Kylie is a slim oval frame designed in collaboration with Kylie Jenner. Similar to existing Meta AI Glasses, the new Meta Glasses include a dedicated action button that can be used to quickly access Meta AI or launch a favorite feature. They also feature open-ear speakers for calls, music, and more. Meta has also included a multi-mic array with wind noise reduction for calls and messaging. Users can capture photos and videos hands-free using voice commands. Meta claims more than eight hours of battery life, while the portable charging case can provide up to 40 additional hours. As expected, Meta Glasses come pre-loaded with Meta AI powered by Muse Spark from day one. Muse Spark is the first model from Meta Superintelligence Labs with improved multimodal capabilities. The same Meta AI upgrade is also now available on existing Ray-Ban Meta and Oakley Meta Glasses in the US and Canada via an update. With the Muse Spark-powered AI assistant, Meta AI in the new glasses can provide smarter answers, understand what the user is seeing, and help with daily tasks such as calendar management and navigation. Meta also announced an upcoming feature called the dynamic photo feature, which captures multiple frames and recommends the best one. Pedestrian navigation is also coming soon to these glasses. Meta is also adding support for 14 new live translation languages, including Japanese, Mandarin Chinese, Hindi, and Korean. The new Meta Glasses are available starting today through Meta.com, Best Buy, Amazon, LensCrafters, Sunglass Hut, and select retailers.
    • is that a personal preference? whether it is or isn't, i get where you're coming from. i try to get and use fully open sourced applications whenever i can but there are instances where i find a superior product that is closed sourced. in these cases i do my best to learn about the company, who operates it, their background, parent and sub structure etc. to some extent, depending on "the smell test". i really believe that Syncback is really and truly something great. even if you don't use it, it's always worth a recommendation to someone else, especially if that someone else is not very computer literate. for someone of your calibre you, you'll manage just fine with Syncthing, no doubt about it.
    • I agree, especially if it is cloud sourced, like this one is.. but I wouldn't say no to a local AI assistant similar to the Zettlab one which would be really helpful with my large Photos library, but also to perform tasks like installing Docker apps rather than me having to do it via Docker Compose, but I don't think we're quite there yet. Synology Photos is somewhat AI, you can ask it to search for certain people (if you have tagged them and it will attempt to match similar photos to the person) and if you put a search term in for "cars" for example, it will show you all photos with a car.
  • Recent Achievements

    • One Month Later
      timbobit earned a badge
      One Month Later
    • One Month Later
      nates earned a badge
      One Month Later
    • Week One Done
      Almohandis earned a badge
      Week One Done
    • Rookie
      dorf went up a rank
      Rookie
    • First Post
      mike_rumble earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      470
    2. 2
      +Edouard
      166
    3. 3
      PsYcHoKiLLa
      104
    4. 4
      Michael Scrip
      87
    5. 5
      Steven P.
      70
  • Tell a friend

    Love Neowin? Tell a friend!