matmalm Posted November 5, 2022 Report Share Posted November 5, 2022 Right now, my cloud is quite large (130 gb), so I'd like to free up some space. Would it be a big difference if I delete some old changesets? Or it wouldn't be too noticeable? Link to comment Share on other sites More sharing options...
Rafael Posted November 16, 2022 Report Share Posted November 16, 2022 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 SupportVirtualize your Workspace. Make it dynamic. Link to comment Share on other sites More sharing options...
matmalm Posted November 16, 2022 Author Report Share Posted November 16, 2022 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 SupportVirtualize 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 More sharing options...
Rafael Posted November 17, 2022 Report Share Posted November 17, 2022 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 SupportVirtualize your Workspace. Make it dynamic. Link to comment Share on other sites More sharing options...
matmalm Posted November 17, 2022 Author Report Share Posted November 17, 2022 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 SupportVirtualize 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 More sharing options...
AndyAces Posted November 29, 2022 Report Share Posted November 29, 2022 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 More sharing options...
AndyAces Posted November 29, 2022 Report Share Posted November 29, 2022 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 SupportVirtualize 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 More sharing options...
Rafael Posted December 4, 2022 Report Share Posted December 4, 2022 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 SupportVirtualize your Workspace. Make it dynamic. 1 Link to comment Share on other sites More sharing options...
AndyAces Posted December 7, 2022 Report Share Posted December 7, 2022 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 More sharing options...
AndyAces Posted December 7, 2022 Report Share Posted December 7, 2022 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 More sharing options...
AndyAces Posted December 7, 2022 Report Share Posted December 7, 2022 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 More sharing options...
AndyAces Posted December 9, 2022 Report Share Posted December 9, 2022 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 SupportVirtualize 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 More sharing options...
matmalm Posted December 28, 2022 Author Report Share Posted December 28, 2022 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? 1 Link to comment Share on other sites More sharing options...
AndyAces Posted January 5, 2023 Report Share Posted January 5, 2023 Unfortunately not. The supports doesn't seem to have then answers I'm afraid. Link to comment Share on other sites More sharing options...
Rafael Posted January 5, 2023 Report Share Posted January 5, 2023 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 SupportVirtualize your Workspace. Make it dynamic. Link to comment Share on other sites More sharing options...
matmalm Posted January 12, 2023 Author Report Share Posted January 12, 2023 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 SupportVirtualize 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. Link to comment Share on other sites More sharing options...
Rafael Posted January 27, 2023 Report Share Posted January 27, 2023 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 SupportVirtualize your Workspace. Make it dynamic. Link to comment Share on other sites More sharing options...
alexander.v Posted February 27, 2023 Report Share Posted February 27, 2023 On 12.01.2023 at 23:18, matmalm said: Я получаю эту ошибку. Когда я запускаю cm find rev на дату, это дает мне правильные результаты. i have some problem Link to comment Share on other sites More sharing options...
calbzam Posted June 26, 2023 Report Share Posted June 26, 2023 Hi, we have released the purge feature. Please check the release notes at: https://www.plasticscm.com/download/releasenotes/11.0.16.8060 Link to comment Share on other sites More sharing options...
matmalm Posted June 26, 2023 Author Report Share Posted June 26, 2023 10 hours ago, calbzam said: Hi, we have released the purge feature. Please check the release notes at: https://www.plasticscm.com/download/releasenotes/11.0.16.8060 What would be the extension for Unity? Let's say if I just want to purge the total revisions from before date Link to comment Share on other sites More sharing options...
calbzam Posted June 27, 2023 Report Share Posted June 27, 2023 Hi @matmalm, you will need to enter the filetypes: eg: .asset Regards, Carlos. Link to comment Share on other sites More sharing options...
matmalm Posted June 27, 2023 Author Report Share Posted June 27, 2023 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): Link to comment Share on other sites More sharing options...
calbzam Posted June 28, 2023 Report Share Posted June 28, 2023 Hi, I cannot reproduce the issue. @matmalm can you open a ticket at devops-vcs-support@unity3d.com? Regards, Carlos. Link to comment Share on other sites More sharing options...
cloudwalker Posted May 6 Report Share Posted May 6 How to use the purge command to purge everything except for the most recent pushed file for all file types. IE I want to purge all old .png, except for the most recent revision. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now