Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6776525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:02:24+00:00 2026-05-26T16:02:24+00:00

I need to create a backup script (both in batch and bash) which I

  • 0

I need to create a backup script (both in batch and bash) which I want to make an automatic svndump which creates the filename dump <repository_name>_<repository_rev>.zip.

Example:
My repository name is MySplice and it’s on rev. 234 (which I don’t know and I don’t wanna check inside repository path), so I want to run a script backup.bat or backup.sh and it creates the file mysplice_r234.zip, which is the dump of my repository.

So, how can I do it? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:02:24+00:00Added an answer on May 26, 2026 at 4:02 pm

    On Linux you could do it this way:

    REPO=/path/to/repository
    r=$(svnlook youngest "$REPO")
    name=$(basename "$REPO")-r$r
    svnadmin dump "$REPO" > "$name.svndump"
    zip "$name.zip" "$name.svndump"
    

    Please note: I think, that a zip file is not a good fit for a repository, because the dump will always be exectly one file and not a bunch of files. So please consider using gzip or bzip2 instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a TSQL script to backup a db on a remote
I need to create a backup of a SQL Server 2005 Database that's only
I need to create Trigger for delete action which backsup all fields old value
Need to create a custom DNS name server using C which will check against
I need to create an ASP page (classic, not ASP.NET) which runs remote shell
I am trying to create backup script for my ESXi server and I am
I need to set up a job to create backup everyday. I also need
I am creating a quick backup script that will dump some databases into a
I need to create a script that backups a couple of files on a
I need some help in PHP to create short urls just like StackOverflow creates

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.