Jump to content

How to free up space?


matmalm

Recommended Posts

  • 2 weeks later...

Hi,

You have two options, deleting repositories or archiving revisions.

To delete repositories you need to go to the repositories view in the client, right-click on the desired repo, and then delete.

You can delete it from the PlasticSCM client, but the storage amount used will only update until the next billing period.

If you want to keep the repositories but remove just some revisions we have the trim feature, we released the "cm archive" feature for the cloud servers:
https://www.plasticscm.com/download/releasenotes/10.0.16.6241

Here you can have more information in detail:
https://www.plasticscm.com/documentation/administration/plastic-scm-version-control-administrator-guide#Chapter10:Archivingrevisions


This way you can reduce space use.

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

Link to comment
Share on other sites

3 hours ago, Rafael said:

Hi,

You have two options, deleting repositories or archiving revisions.

To delete repositories you need to go to the repositories view in the client, right-click on the desired repo, and then delete.

You can delete it from the PlasticSCM client, but the storage amount used will only update until the next billing period.

If you want to keep the repositories but remove just some revisions we have the trim feature, we released the "cm archive" feature for the cloud servers:
https://www.plasticscm.com/download/releasenotes/10.0.16.6241

Here you can have more information in detail:
https://www.plasticscm.com/documentation/administration/plastic-scm-version-control-administrator-guide#Chapter10:Archivingrevisions


This way you can reduce space use.

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

By deleting repositories, you mean delete changesets?

So, I just go to the Plastic client, click on changesets and select one to delete?

Is this safe in the way that it will not affect my current changes?

Link to comment
Share on other sites

Hi,

17 hours ago, matmalm said:

By deleting repositories, you mean delete changesets?

No, we do not encourage deletion of chagesets even when its possible from the GUI, you certainly can affect users workspace conditions by doing so (If someone is pointing to a deleted changeset).

I would recommend the second option (Archive revisions) and only proceed with changeset or repository deletions when 100% sure you are not going to need the repos or change sets again and you are not going to mess someone else work.

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

Link to comment
Share on other sites

2 hours ago, Rafael said:

 

Hi,

No, we do not encourage deletion of chagesets even when its possible from the GUI, you certainly can affect users workspace conditions by doing so (If someone is pointing to a deleted changeset).

I would recommend the second option (Archive revisions) and only proceed with changeset or repository deletions when 100% sure you are not going to need the repos or change sets again and you are not going to mess someone else work.

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

Al right, thank you. Then I might go for the first as I'm the only member of the workspace.

Link to comment
Share on other sites

  • 2 weeks later...

Hi, sorry if I am hijacking thread but I am trying to do the same.  When you say archive revision where is this option?  I use plastic with Unity and my project is currently broken.  I cannot push changes as I get errors, and I cannot revert to a previous changeset while the are changes pending which obviously i cannot push.  Project is unusable at the moment.  I would like to get access to the project again and trim it down to the last 3 or 4 changsets only.

Link to comment
Share on other sites

On 11/16/2022 at 6:42 PM, Rafael said:

Hi,

You have two options, deleting repositories or archiving revisions.

To delete repositories you need to go to the repositories view in the client, right-click on the desired repo, and then delete.

You can delete it from the PlasticSCM client, but the storage amount used will only update until the next billing period.

If you want to keep the repositories but remove just some revisions we have the trim feature, we released the "cm archive" feature for the cloud servers:
https://www.plasticscm.com/download/releasenotes/10.0.16.6241

Here you can have more information in detail:
https://www.plasticscm.com/documentation/administration/plastic-scm-version-control-administrator-guide#Chapter10:Archivingrevisions


This way you can reduce space use.

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

I'm reading this but still I don't understand how I would archive changesets rather than certain files.  I really want to archive all but the last 4 changesets in my project if that is possible?

Link to comment
Share on other sites

Hi,

On 11/29/2022 at 6:37 AM, AndyAces said:

I'm reading this but still I don't understand how I would archive changesets rather than certain files.  I really want to archive all but the last 4 changesets in my project if that is possible?

This is possible to achieve, you will need to use a cm find revs command filtering by date like this one:

cm find revisions "where date >= 'one month ago' on repository 'Repo@Cloud@cloud'

Then using those revisions you can run a cm archive command.

Complete Command Example in powershell:

cm archive $(cm find revisions "where date >= 'one month ago' on repository 'Repo@Cloud@cloud' ") -c="old revisions" -file=/Documents/UFPel/2021-2

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

  • Like 1
Link to comment
Share on other sites

I tried this command but i get the error unexpected option -file  - any idea what the issue is?

C:\>cm archive $(cm find revisions "where date >= 'one month ago' on repository 'TLG2020@AndyNeomam@cloud' ") -c="old revisions" -file=D:\PlasticArchive
archive: Unexpected option -file

Link to comment
Share on other sites

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Windows\system32> cm archive $(cm find revisions "where date >= 'one month ago' on repository 'TLG2020@AndyNeoman@cloud' ") -c="old revisions" -file=D:\PlasticArchive
Program 'cm.exe' failed to run: The filename or extension is too longAt line:1 char:1
+ cm archive $(cm find revisions "where date >= 'one month ago' on repo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
At line:1 char:14
+ ... m archive $(cm find revisions "where date >= 'one month ago' on repos ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

Link to comment
Share on other sites

archive: Unexpected option -file

PS C:\Users\Andy> cm archive $(cm find revisions "where date >= 'one month ago' on repository 'main@TLG2020@AndyNeomam@cloud' ") -c="old revisions" -file=D:/PlasticArchive
cm : Error: Can't resolve DNS entry for cloud.plasticscm.com
At line:1 char:14
+ ... m archive $(cm find revisions "where date >= 'one month ago' on repos ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Error: Can't re....plasticscm.com:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
archive: Unexpected option -file

 

Link to comment
Share on other sites

On 12/4/2022 at 9:04 PM, Rafael said:

 

Hi,

This is possible to achieve, you will need to use a cm find revs command filtering by date like this one:

cm find revisions "where date >= 'one month ago' on repository 'Repo@Cloud@cloud'

Then using those revisions you can run a cm archive command.

Complete Command Example in powershell:

cm archive $(cm find revisions "where date >= 'one month ago' on repository 'Repo@Cloud@cloud' ") -c="old revisions" -file=/Documents/UFPel/2021-2

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

Hi Rafael, I can finally get the cm find command to work but the archive command does not.  I get this erro:-

 

D:\PlasticArchive>cm archive $(cm find "revs where size > 26214400 on repository 'TLG2020@AndyNeoman@cloud' ")
$(cm does not exist.

Link to comment
Share on other sites

  • 3 weeks later...
On 12/9/2022 at 12:34 PM, AndyAces said:

Hi Rafael, I can finally get the cm find command to work but the archive command does not.  I get this erro:-

 

D:\PlasticArchive>cm archive $(cm find "revs where size > 26214400 on repository 'TLG2020@AndyNeoman@cloud' ")
$(cm does not exist.

I got the same issue, could you solved it?

  • Like 1
Link to comment
Share on other sites

Hi,

I missed a "-" in the --file part of the command, it is a double dash like this:

cm archive $(cm find revisions "where date >= 'one month ago' on repository 'Repo@Cloud@cloud' ") -c="old revisions" --file=/Documents/UFPel/2021-2

Also, you might need to use PowerShell if you are using windows to support the $ syntax, I forgot to mention.

Please first try only the cm find rev command to verify that this is the information you want to archive.

 

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

Link to comment
Share on other sites

On 1/5/2023 at 4:06 PM, Rafael said:

Hi,

I missed a "-" in the --file part of the command, it is a double dash like this:

cm archive $(cm find revisions "where date >= 'one month ago' on repository 'Repo@Cloud@cloud' ") -c="old revisions" --file=/Documents/UFPel/2021-2

Also, you might need to use PowerShell if you are using windows to support the $ syntax, I forgot to mention.

Please first try only the cm find rev command to verify that this is the information you want to archive.

 

 

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

I get this error. When I execute cm find rev on the date it gives me the right results though.

plasticscm.png

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

That should be a problem with the format, this is an example of an expected format:

cm find "revs where CONDITION" --format="rev:{item}#cs:{changeset}" --nototal

 
Output example: rev:/Users/rafael/wkspaces/NewCloudRepo/test.txt#cs:8
 

Then that command should be valid for a complete cm archive, this is a complete example:

cm archive $(cm find "revs where CONDITION" --format="rev:{item}#cs:{changeset}" --nototal) -c="old" -f="/Users/rafael/Archive/archive2"

I would advice to first run the cm find revs and validate that you want to archive all of the results of the query.

Regards,

Rafael

Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

 

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
2 hours ago, calbzam said:

Hi @matmalm, you will need to enter the filetypes:

eg:

.asset

Regards,

Carlos.

 

It doesn't work for me.

cm purge register ".asset" "2022-Dec-21 13:40" --repository=xxx

It shows me the usage on how to do it (I already allow it the purge option in the repository):

 

purge.png

Link to comment
Share on other sites

  • 10 months later...
  • 2 weeks later...

To free up space in your Unity Version Control repository, you can utilize the new Purge feature. Here's a step-by-step guide:

  1. Access the Command Line Interface (CLI): Ensure you have access to the CLI for Unity Version Control.

  2. Request a Purge: Use the command "cm purge register" followed by the specifications of the purge you want to perform. Specify the file extension and the date "before" which you want to apply the purge.

  3. Execute the Purge: Once you've registered the purge, execute it using the appropriate command. This will initiate the process of permanently deleting the specified revisions and trimming your repository data.

  4. Review and Confirm: Before finalizing the purge, review the proposed changes to ensure they align with your intentions. Once confirmed, proceed with the execution.

  5. Monitor Progress: Keep an eye on the purge process through the CLI to track its progress and ensure it is completed successfully.

  6. Verify Repository Size: After the purge is complete, verify that the repository size has decreased accordingly, reflecting the removal of unnecessary revisions.

By following these steps, you can effectively free up space in your Unity Version Control repository while maintaining stability and data integrity.

 
 
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...