Jump to content

AndyAces

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by AndyAces

  1. 12 hours ago, blue said:

    @AndyAces

    I have executed the command below with my cloud server and size bigger than 1 and it executed on CMD successfully.

     

    Yes I can get the find command to work but then archive does not work.  I get the below error ("$cm does not exist)

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

     

     

    I was thinking about archiving the whole project like mentioned above - How would I do that (I read the link and it doesn't seem to give the command) I presume if I archive the whole project to my own storage the plastic storage will be zero and I can then reupload the project on a new repo and be at base storage space again - is that right?  That might be the perfect solution.

  2. 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.

  3. I tied this too and get DNS error 

    PS C:\Users\Andy> cm find "revs where size > 26214400 on repository 'TLG2020@AndyNeomam@cloud' "
    cm : Error: Can't resolve DNS entry for cloud.plasticscm.com
    At line:1 char:1
    + cm find "revs where size > 26214400 on repository 'TLG2020@AndyNeomam ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (Error: Can't re....plasticscm.com:String) [], RemoteException
        + FullyQualifiedErrorId : NativeCommandError

  4. This would be great but the code above produces an error  

    cm find "revs where size > 26214400" --format="{item}#{branch}" \
          --nototal | cm archive -c="volume00" --file="volume00" -
        (Archives all the files bigger than 25Mb on files starting with name
        'volume00'.)

    At line:2 char:9
    +       --nototal | cm archive -c="volume00" --file="volume00" -
    +         ~
    Missing expression after unary operator '--'.
    At line:2 char:9
    +       --nototal | cm archive -c="volume00" --file="volume00" -
    +         ~~~~~~~
    Unexpected token 'nototal' in expression or statement.
    At line:3 char:73
    + ...  (Archives all the files bigger than 25Mb on files starting with name
    +                                                                          ~
    Missing closing ')' in expression.
    At line:4 char:5
    +     'volume00'.)
    +     ~~~~~~~~~~
    Unexpected token ''volume00'' in expression or statement.
    At line:4 char:16
    +     'volume00'.)
    +                ~
    Missing property name after reference operator.
    At line:4 char:16
    +     'volume00'.)
    +                ~
    Unexpected token ')' in expression or statement.
        + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : MissingExpressionAfterOperator

  5. 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

     

  6. 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

  7. 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

  8. 14 hours ago, blue said:

    Hi @AndyAces,

    Archiving the changeset is not possible :( . Is archiving entire repo an option for you?

     

    Unfortunately not as the project is ongoing.  I'm really struggling to understand what trim or archive are actually for.  How I can benefit from it to reduce repo size.  Why can't i delete really old changesets? How I can trim old version of files etc.. My repo is three times the size of the actual folder now and I have no idea where to start to reduce it.  Is there a way of removing old version of all files so the current copy/version of each file is the only one stored?

  9. 14 hours ago, blue said:

    Hi @AndyAces,

    As you mentioned, there’s a way to trim to archive revision.

    We released the "cm archive" feature for the cloud servers:
    https://www.plasticscm.com/download/releasenotes/10.0.16.6241 

     Please let us know if you have any questions.

    Hi there, yes, thanks I have looked at that document and apologies for struggling to understand.  It seems to mention archiving files but i dont want to do that.  Is there any information on how to archive changesets?  I only want to keep the last 3 or 4 changesets since we have upgraded to a new version of unity and no longer require the old changesets.

     

    I tried to delete them but I get an error and it says the changeset has dependents so cannot be deleted.

  10. Sorry for the newbie question - I have looked at the blog re the trim feature and it only seems to explain trim to an asset or file.  I was hoping there is a way to trim all previous changesets leaving only the last 3?  We have major updates so all the old changes which are taking up room are no longer useable.  Thanks for any help.  Andy

  11. 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?

  12. 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.

×
×
  • Create New...