Jump to content


Server files location?


  • Please log in to reply
5 replies to this topic

#1 FMastro

FMastro

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 11 September 2019 - 08:25 PM

Is there a way I can see where P4 is storing the database information and all the files for a depot? and is there a way for me to change it?

I want to know what I need to backup in case the server crashes.

#2 P4Karl

P4Karl

    Advanced Member

  • Administrators
  • 58 posts

Posted 13 September 2019 - 01:54 PM

Hi.

If you run 'p4 info' against the server there is a 'Server root:' field. By default on Windows it's 'C:\Program Files\Perforce\Server'. On Linux if you sed the packages it's usually under '/op/perforce/servers'.

Regards,

Karl

#3 P4Jen

P4Jen

    Advanced Member

  • Staff Moderators
  • 147 posts

Posted 13 September 2019 - 02:05 PM

Also, information about how to change the location of a depot is here:
  https://community.pe.../s/article/2559

Hope this helps,
Jen.


#4 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 13 September 2019 - 03:04 PM

View PostFMastro, on 11 September 2019 - 08:25 PM, said:

I want to know what I need to backup in case the server crashes.

Once you've located the server root, you want this chapter of the admin guide: https://www.perforce...ter.backup.html

tl;dr: back up the database files by taking a checkpoint (p4d -jc or p4 admin checkpoint) and backing up the resulting checkpoint.n and journal.n-1 files.  Back up the file content by just zipping up everything under the depot/ folder(s).  You can also just back up the whole root folder (including the db.* files), but the checkpoint mechanism is more space-efficient and gives you extra resiliency for those precious database files (you can combine checkpoints and journals to recover to intermediate states, even *after* the latest checkpoint).

#5 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 947 posts

Posted 14 September 2019 - 03:06 PM

.

#6 FMastro

FMastro

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 15 September 2019 - 12:40 AM

Thank you! That helped. Found them.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users