Perforce backup with rsync

First thing to know, I don’t really want to backup the entire perforce database since it’s huge and requires a lot of extra steps. I’m only backing up the latest version in case a doom fire happens to my apartment.
The scheduled backup is run on my p4 server A, in order to run a scheduled backup plan to push my newest project version to server B.

Create client(aka workspace) for the server A itself.

p4 -d `pwd` client -t Vuth_Auri -o Auri_Backup | p4 client -i
p4 client Auri_Backup

Then run a script in crontab.

51 * * * * bash /home/vuth/__backup/runBackup.sh

$cat runBackup.sh

p4 sync
rsync -rtz -e "ssh -p 1111 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /home/vuth/.ssh/id_rsa_somekey" /home/vuth/__backup/p4 vuth@123.123.123.123:/home/vuth/p4

First line get the latest version of your project to the workspace.
Second line runs rsync over a ssh connection to your remote server B.

And that’s it. Notice that this is incremental. You can add –delete to the rsync command to remove garbage from remote server B. I left it for extra safety.

695 thoughts on “Perforce backup with rsync

  1. https://www.russianrealty.ru/bitrix/redirect.php?goto=https://board-de.farmerama.com:443/proxy.php?link=https://de.trustpilot.com/review/der-wikinger-shop.de</a

    References:

    Hitnspin anmelden https://www.russianrealty.ru/bitrix/redirect.php?goto=https://board-de.farmerama.com:443/proxy.php?link=https://de.trustpilot.com/review/der-wikinger-shop.dehttps://www.russianrealty.ru/bitrix/redirect.php?goto=https://board-de.farmerama.com:443/proxy.php?link=https://de.trustpilot.com/review/der-wikinger-shop.de</a

    Reply
  2. 창문시트지

    Every weekend i used to pay a visit this web page, because i want enjoyment,
    for the reason that this this web page conations in fact good
    funny stuff too.

    Reply
  3. rape sex child

    Thank you for some other fantastic post. Where else may just anyone get that kind of info in such a perfect means of writing?
    I’ve a presentation subsequent week, and I’m at the look for such info.

    Reply
  4. jihad website

    Have you ever thought about adding a little bit more than just your articles?
    I mean, what you say is important and all. But just imagine if you
    added some great images or video clips to give your posts more, “pop”!
    Your content is excellent but with images and clips, this site could certainly be one of the best
    in its niche. Very good blog!

    Reply
  5. 손목결절종

    Howdy! This blog post could not be written any better!
    Going through this post reminds me of my previous roommate!

    He always kept preaching about this. I most certainly will
    send this article to him. Pretty sure he will have
    a very good read. Many thanks for sharing!

    Reply
  6. Home Page

    Aw, this was an extremely good post. Spending some time and
    actual effort to make a really good article… but what can I say… I
    procrastinate a whole lot and never seem to get anything done.

    Reply
  7. 창문시트지

    Have you ever thought about publishing an e-book or guest authoring on other sites?

    I have a blog centered on the same ideas you discuss and would love to have
    you share some stories/information. I know my subscribers
    would enjoy your work. If you are even remotely interested, feel free to send
    me an email.

    Reply
  8. Source

    hello!,I love your writing very so much! percentage we
    keep in touch extra approximately your article on AOL?
    I need an expert on this house to unravel my problem.

    May be that’s you! Taking a look forward to look you.

    Reply
  9. next page

    Hello there! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on.
    Any tips?

    Reply
  10. local locksmith

    I like the helpful info you provide in your articles.
    I’ll bookmark your blog and check again here frequently.
    I am quite certain I will learn many new
    stuff right here! Good luck for the next!

    Reply
  11. SCAMMER

    Simply want to say your article is as amazing.

    The clearness for your publish is just cool and that i can suppose you are knowledgeable in this subject.
    Well together with your permission allow me to snatch your RSS feed to stay up to date with coming near near post.

    Thanks a million and please carry on the enjoyable work.

    Reply
  12. obat terlarang

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make
    your point. You definitely know what youre talking about, why waste your intelligence
    on just posting videos to your site when you could be giving us something enlightening to read?

    Reply
  13. jav mov

    Hi there! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything I’ve worked
    hard on. Any recommendations?

    Reply
  14. 창문시트지

    you are really a excellent webmaster. The web site loading speed is
    amazing. It sort of feels that you’re doing any unique trick.
    Also, The contents are masterwork. you’ve done a great job in this subject!

    Reply
  15. website

    Good day! This is my first visit to your blog!
    We are a group of volunteers and starting a new initiative in a community
    in the same niche. Your blog provided us useful information to work on. You have done a
    marvellous job!

    Reply
  16. sex

    Thankfulness to my father who stated to me regarding this web site,
    this webpage is genuinely awesome.

    Reply
  17. orgy

    You are so interesting! I don’t believe I’ve read anything
    like that before. So great to find somebody with some genuine thoughts on this subject matter.

    Really.. many thanks for starting this up. This site
    is one thing that’s needed on the internet,
    someone with a bit of originality!

    Reply
  18. jihad bomber

    Hi all, here every person is sharing such knowledge, so it’s nice to read this web site, and I used to go to see this website every day.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *